Expand|Select|Wrap|Line Numbers
- printf("please enter the value with its SI unit...");
- scanf(" %lf %c",&value,&si);
so i assume it needs units or character to quit...
but then how to integrate it with my normal asked input like the first..
i assume this but dunno of its compilabilty
Expand|Select|Wrap|Line Numbers
- #include<stdio.h>
- char choice;
- float value;
- int main()
- {
- do{
- printf("this is a program by ME\n);
- printf("please input values followed with its SI unit or q to quit..\n);
- scanf(" %lf %c"&value,&choice);
- }while(choice!=q)
- printf("have a nice day\n");
- return 0;
any help???