blob: a4e143d798be6755117f768f4256c9d9d30fdef7 (
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' or c == 'Y')
{
printf("Agreed.\n");
}
else if (c == 'n' or == 'N')
{
printf("Not agreed.\n");
}
}
|