Happy About the progress
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// Logical operators
|
||||
|
||||
#include <cs50.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
// Prompt user to agree
|
||||
char c = get_char("Do you agree? ");
|
||||
|
||||
// Check whether agreed
|
||||
if (c == 'Y' || c == 'y')
|
||||
{
|
||||
printf("Agreed.\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Not agreed.\n");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user