Advertisement
Guest User

Untitled

a guest
Nov 29th, 2015
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main ()
  4. {
  5. int i=0;
  6. char znak;
  7. while (1)
  8. {
  9. printf("Podaj znak\n");
  10. scanf("%c",&znak);
  11. fflush(stdin);
  12. if((znak>='0')&&(znak<='9')) goto koniec;
  13. }
  14. koniec:
  15. printf("Podales cyfre, program zamknie sie.\n");
  16. system("pause");
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement