view 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
line wrap: on
line source

// garf simulator
#include <stdio.h>
#include <string.h>

int main(void) {
    char answer[255];
    std::cout << "would you like to monetize 1123.best?: ";
    fgets(answer, sizeof(answer), stdin);
    if(strcmp(answer, "yes") == 0) {
        std::cout << "it's a yes!";
    } else {
        std::cout << "it's a yes!";
    }
    return 0;
}