Advertisement
Guest User

Untitled

a guest
Oct 30th, 2021
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int y = 0;
  6. int input = 0;
  7.  
  8. printf("Enter a number: ");
  9.  
  10. while (y == 0)
  11. {
  12. if (scanf(" %d", &input) == 0)
  13. {
  14. printf("Type in an integer: ");
  15. }
  16. else
  17. {
  18. y = 5;
  19. }
  20. }
  21. return 0;
  22.  
  23.  
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement