diff --git a/num.c b/num.c index 1222ec7..d30993c 100644 --- a/num.c +++ b/num.c @@ -9,7 +9,7 @@ int main() { printf("Enter the second number: "); scanf("%d", &num2); - sum = num1 + num3; + sum = num1 + num2; printf("The sum of %d and %d is %d.", num1, num2, sum);