Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions num.c
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#include <stdio.h>

int main() {
int num1, num2, sum;
int num01, num02, sum;

printf("Enter the first number: ");
scanf("%d", &num1);
scanf("%d", &num01);

printf("Enter the second number: ");
scanf("%d", &num2);
scanf("%d", &num02);

sum = num1 + num3;
sum = num01 + num03;

printf("The sum of %d and %d is %d.", num1, num2, sum);
printf("The sum of %d and %d is %d.", num01, num02, sum);

return 0;
}