Skip to content

Commit 3231087

Browse files
authored
Addition Number
Addition program in C
1 parent c5c05c2 commit 3231087

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Addition Number

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Addition program in C
2+
3+
#include <stdio.h>
4+
int main()
5+
{
6+
int x, y, z;
7+
8+
printf("Enter two numbers to add\n");
9+
scanf("%d%d", &x, &y);
10+
11+
z = x + y;
12+
13+
printf("Sum of the numbers = %d\n", z);
14+
15+
return 0;
16+
}
17+

0 commit comments

Comments
 (0)