Advertisement
globalbus

pobieranie

Jan 13th, 2012
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1.       int value;
  2.       int ch;
  3.       printf("%s\n", "Podaj liczbe");
  4.       value = scanf("%d", &d);
  5.       while (value ==0 || d<0)
  6.        {
  7.                while((ch = getchar()) != '\n' && ch != EOF );
  8.                 printf("%s\n", "Podaj liczbe  ponownie:");
  9.                 value = scanf("%d", &d);
  10.  
  11.        }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement