Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int value;
- int ch;
- printf("%s\n", "Podaj liczbe");
- value = scanf("%d", &d);
- while (value ==0 || d<0)
- {
- while((ch = getchar()) != '\n' && ch != EOF );
- printf("%s\n", "Podaj liczbe ponownie:");
- value = scanf("%d", &d);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement