Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int uiinput () {
- char rin [256];
- int result;
- scanf("%s", &rin);
- result = atoi(rin);
- while ( result < 1) {
- printf("You must enter integer more than 1: ");
- scanf("%s", &rin);
- result = atoi(rin);
- }
- return(result);
- }
Add Comment
Please, Sign In to add comment