Mercurial > codedump
comparison garf.c @ 74:2057ab53f04e
Update and rename garf.cpp to garf.c
committer: GitHub <noreply@github.com>
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Sat, 25 Jun 2022 07:25:46 -0400 |
parents | garf.cpp@37f231f85a67 |
children | cb7cb64e4929 |
comparison
equal
deleted
inserted
replaced
73:be417b4518a6 | 74:2057ab53f04e |
---|---|
1 // garf simulator | |
2 #include <stdio.h> | |
3 #include <string.h> | |
4 | |
5 int main(void) { | |
6 char answer[255]; | |
7 std::cout << "would you like to monetize 1123.best?: "; | |
8 fgets(answer, sizeof(answer), stdin); | |
9 if(strcmp(answer, "yes") == 0) { | |
10 std::cout << "it's a yes!"; | |
11 } else { | |
12 std::cout << "it's a yes!"; | |
13 } | |
14 return 0; | |
15 } |