Tech: Artificial Intelligence AI, Blockchain, Augmented Reality, Software, Programming, and more
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment