summaryrefslogtreecommitdiff
path: root/agree.c
diff options
context:
space:
mode:
Diffstat (limited to 'agree.c')
-rw-r--r--agree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/agree.c b/agree.c
index 48302d2..a4e143d 100644
--- a/agree.c
+++ b/agree.c
@@ -4,11 +4,11 @@
int main(void)
{
char c = get_char("Do you agree? ");
- if (c == 'y')
+ if (c == 'y' or c == 'Y')
{
printf("Agreed.\n");
}
- else if (c == 'n')
+ else if (c == 'n' or == 'N')
{
printf("Not agreed.\n");
}