Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void)
- {
- int y = 0;
- int input = 0;
- printf("Enter a number: ");
- while (y == 0)
- {
- if (scanf(" %d", &input) == 0)
- {
- printf("Type in an integer: ");
- }
- else
- {
- y = 5;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement