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 c28ddca..0676cd2 100644
--- a/agree.c
+++ b/agree.c
@@ -4,11 +4,11 @@
int main(void)
{
char c = get_char("Do you agree? ");
- if (c == 'y' | c == 'Y')
+ if (c == 'y' || c == 'Y')
{
printf("Agreed.\n");
}
- else if (c == 'n' | c == 'N')
+ else if (c == 'n' || c == 'N')
{
printf("Not agreed.\n");
}