C
This commit is contained in:
17
learnc/learnc2.c
Executable file
17
learnc/learnc2.c
Executable file
@ -0,0 +1,17 @@
|
||||
#include <stdio.h>
|
||||
|
||||
void guessNumber(int guess) {
|
||||
|
||||
if (guess == 555) {
|
||||
printf("Correct. You guessed it!\n");
|
||||
} if (guess < 555) {
|
||||
printf("Your guess is too low.\n");
|
||||
} if (guess > 555) {
|
||||
printf("Your guess is too high.\n");
|
||||
}
|
||||
}
|
||||
int main() {
|
||||
guessNumber(500);
|
||||
guessNumber(600);
|
||||
guessNumber(555);
|
||||
}
|
Reference in New Issue
Block a user