Sunday, August 30, 2020

agree.c

#include <cs50.h>
#include <stdio.h>

int main(void)
{

char c = get_char("do you agree?\n");

if (c== 'y' || c=='Y')
{
printf("agreed\n");
}
else if (c=='n' || c=='N')
{
printf("do not agree\n");
}


}

No comments:

Post a Comment