Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (!(scanf_s("%d", &num)) || num <= 0) {
- rewind(stdin);
- printf("You entered wrong value.\nPlease, enter natural number.\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement