Mercurial > codedump
comparison garf.c @ 78:cb7cb64e4929
Update garf.c
committer: GitHub <noreply@github.com>
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Mon, 04 Jul 2022 07:01:44 -0400 |
parents | 2057ab53f04e |
children | bc2e83fbfbce |
comparison
equal
deleted
inserted
replaced
77:81f95f11fe39 | 78:cb7cb64e4929 |
---|---|
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 std::cout << "would you like to monetize 1123.best?: "; | 7 print("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 std::cout << "it's a yes!"; | 10 printf("it's a yes!"); |
11 } else { | 11 } else { |
12 std::cout << "it's a yes!"; | 12 printf("it's a yes!"); |
13 } | 13 } |
14 return 0; | 14 return 0; |
15 } | 15 } |