Program : C Program to find sum of two numbers
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #include<stdio.h> #include<conio.h> int main() { int a, b, sum; printf("\nEnter two no: "); scanf("%d %d", &a, &b); sum = a + b; printf("Sum : %d", sum); getch(); } |
Output :
1 2 | Enter two no: 5 6 Sum : 11 |
0 Comments