+ 1

Program for add 2 integer in c language

#include <stdio.h> int main() { int firstNumber, secondNumber, sumOfTwoNumbers; printf("Enter two integers: "); // Two integers entered by user is stored using scanf() function scanf("%d %d", &firstNumber, &secondNumber); // sum of two numbers in stored in variable sumOfTwoNumbers sumOfTwoNumbers = firstNumber + secondNumber; // Displays sum printf("%d + %d = %d", firstNumber, secondNumber, sumOfTwoNumbers); return 0; }

6th Jan 2018, 3:21 PM
Gaurav Saini
Gaurav Saini - avatar
4 Answers
+ 3
its for someone who wants it
6th Jan 2018, 3:33 PM
Gaurav Saini
Gaurav Saini - avatar
+ 9
Why are you posting it here? Make a code.
6th Jan 2018, 3:24 PM
Swapnil Srivastava
Swapnil Srivastava - avatar
+ 1
Ty bro It's Fadu
13th Jan 2018, 11:42 AM
Rishabh
Rishabh  - avatar
+ 1
thanks Rishabh bro
19th Jan 2018, 9:14 AM
Gaurav Saini
Gaurav Saini - avatar