Guest User

Untitled

a guest
Jan 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. int uiinput () {
  2.         char rin [256];
  3.         int result;
  4.         scanf("%s", &rin);
  5.         result = atoi(rin);
  6.         while ( result < 1) {
  7.                 printf("You must enter integer more than 1: ");
  8.                 scanf("%s", &rin);
  9.                 result = atoi(rin);
  10.         }
  11.         return(result);
  12. }
Add Comment
Please, Sign In to add comment