Non-recursive Iteration and Recursion/Lab1.c
int prompt(){
    int input;
    printf("%s", "Please enter a positive integer: ");
    scanf("%d", &input);
    return input;
}
/*
  prompt: displays a message to the user asking for input
  Input:
  Output: the users input
*/
displays a message to the user asking for input
Input:
Output: the users input
displays a message to the user asking for input Input : Output : the users input
int prompt(){
    int input;
    printf("%s", "Please enter a positive integer: ");
    scanf("%d", &input);
    return input;
}
int prompt ( ) { int input ; printf ( " " , " " ) ; scanf ( " " , & input ) ; return input ; }
prompt: displays a message to the user asking for input
Input:
Output: the users input
prompt : displays a message to the user asking for input Input : Output : the users input