Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* input & check validation*/
- while (1) {
- printf("Enter epsi: ");
- fflush(stdin); ch = '\0';
- scanf("%d%c", &a, &ch);
- if (a>0 && ch == '\n') {
- break;
- }
- else {
- printf("Invalid input, please re-enter!\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement