Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main ()
- {
- int i=0;
- char znak;
- while (1)
- {
- printf("Podaj znak\n");
- scanf("%c",&znak);
- fflush(stdin);
- if((znak>='0')&&(znak<='9')) goto koniec;
- }
- koniec:
- printf("Podales cyfre, program zamknie sie.\n");
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement