From 9947513ab9366359cc607c9c2e3488ef7789a3fe Mon Sep 17 00:00:00 2001 From: Sergio Sepulveda <66451506+sergiosepulveda09@users.noreply.github.com> Date: Wed, 23 Jun 2021 16:52:39 -0700 Subject: [PATCH] Changed it from "+" to ">" --- PositiveOrNegative.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PositiveOrNegative.c b/PositiveOrNegative.c index 0bf4328..fa933c8 100644 --- a/PositiveOrNegative.c +++ b/PositiveOrNegative.c @@ -4,7 +4,7 @@ void main() { int num; printf("Input a number :"); scanf("%d", &num); - if (num += 0) + if (num >= 0) printf("%d is a positive number \n", num); else if (num == 0) { printf("%d is zero \n", num); @@ -12,4 +12,4 @@ void main() { else { printf("%d is a negative number \n", num); } -} \ No newline at end of file +} -- 2.49.1