This commit is contained in:
2023-09-23 22:20:41 +03:00
parent 609aa52e66
commit 66997adad5
42 changed files with 642 additions and 0 deletions

17
learnc/learnc2.c Executable file
View 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);
}