diff options
Diffstat (limited to 'agree.c')
-rw-r--r-- | agree.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,15 @@ +#include <stdio.h> +#include <cs50.h> + +int main(void) +{ + char c = get_char("Do you agree? "); + if (c == 'y') + { + printf("Agreed.\n"); + } + else if (c == 'n') + { + printf("Not agreed.\n"); + } +} |