Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- float f;
- int counter = 0; //just to break cycle, that became endless, once 'q' is entered
- scanf("%f",&f);
- while( f!= (float)'q')//that's where problem is!
- {
- printf("f is %f\n",f);
- scanf("%f",&f);
- counter++;
- if(counter==5)
- break;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement