Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- using namespace std;
- int main()
- {
- int a=0;
- printf("Podaj liczbe: ");
- while(scanf("%d",&a)!=1)
- {
- printf("Podaj liczbe: ");
- int b=0;
- while((b=getchar())!='\n' && b!=EOF);
- }
- printf("%d",a);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement