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
5 changes: 4 additions & 1 deletion add.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

int main() {

int num1, num2, num3, sum;
int num1, num2, num3, num4, sum;

printf("Enter the first number: ");
scanf("%d", &num1);
Expand All @@ -12,6 +12,9 @@ int main() {

printf("Enter the third number: ");
scanf("%d", &num3);

printf("Enter the fourth number: ");
scanf("%d", &num4);

sum = num1 + num2 + num3;

Expand Down