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