blob: 48302d2fcb33b8c10fab1019df91019ea997fc3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <stdio.h>
#include <cs50.h>
int main(void)
{
char c = get_char("Do you agree? ");
if (c == 'y')
{
printf("Agreed.\n");
}
else if (c == 'n')
{
printf("Not agreed.\n");
}
}
|