Mercurial > codedump
comparison garf.c @ 79:bc2e83fbfbce
Update garf.c
committer: GitHub <noreply@github.com>
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Mon, 04 Jul 2022 07:01:56 -0400 |
parents | cb7cb64e4929 |
children |
comparison
equal
deleted
inserted
replaced
78:cb7cb64e4929 | 79:bc2e83fbfbce |
---|---|
2 #include <stdio.h> | 2 #include <stdio.h> |
3 #include <string.h> | 3 #include <string.h> |
4 | 4 |
5 int main(void) { | 5 int main(void) { |
6 char answer[255]; | 6 char answer[255]; |
7 print("would you like to monetize 1123.best?: "); | 7 printf("would you like to monetize 1123.best?: "); |
8 fgets(answer, sizeof(answer), stdin); | 8 fgets(answer, sizeof(answer), stdin); |
9 if(strcmp(answer, "yes") == 0) { | 9 if(strcmp(answer, "yes") == 0) { |
10 printf("it's a yes!"); | 10 printf("it's a yes!"); |
11 } else { | 11 } else { |
12 printf("it's a yes!"); | 12 printf("it's a yes!"); |