Files
CS50---Harvard/Hayet_Classwork/agree.c
T
2026-05-28 10:16:10 +00:00

20 lines
233 B
C

#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
{
printf("Not Agreed.'\n");
}
}