C Program To Add Two Numbers (Integers)
Take two integers from user and add print their sum.
- //C Program to add two numbers"
-
- #include<stdio.h>
-
- int main()
- {
- int a, b, sum;
- printf("Enter first number: ");
- scanf("%d", &a);
-
- printf("Enter second number: ");
- scanf("%d", &b);
-
- sum= (a+b);
-
- printf("Sum = %d", sum);
- return 0;
- }
Output

Solution not working or have any suggestions? Please send an email to [email protected]
Download Android App