SlideShare a Scribd company logo
1 of 1
C program to add two numbers
#include<stdio.h>
//#inclide<conio.h>
int main()
{
int a, b, c;
printf("Enter two numbers to addn");
scanf("%d%d",&a,&b);
c = a + b;
printf("Sum of entered numbers = %dn",c);
return 0;
}
Output of program:

More Related Content

What's hot (18)

Bcsl 033 data and file structures lab s2-2
Bcsl 033 data and file structures lab s2-2Bcsl 033 data and file structures lab s2-2
Bcsl 033 data and file structures lab s2-2
 
Shan
ShanShan
Shan
 
week-1x
week-1xweek-1x
week-1x
 
C Language Programs
C Language Programs C Language Programs
C Language Programs
 
week-8x
week-8xweek-8x
week-8x
 
Factorial
FactorialFactorial
Factorial
 
Program for pyramid
Program for pyramidProgram for pyramid
Program for pyramid
 
Palindrome number program c
Palindrome number program cPalindrome number program c
Palindrome number program c
 
C Programming Example
C Programming Example C Programming Example
C Programming Example
 
Practical no 3
Practical no 3Practical no 3
Practical no 3
 
C Programming Example
C Programming ExampleC Programming Example
C Programming Example
 
week-10x
week-10xweek-10x
week-10x
 
Bcsl 033 data and file structures lab s2-1
Bcsl 033 data and file structures lab s2-1Bcsl 033 data and file structures lab s2-1
Bcsl 033 data and file structures lab s2-1
 
Bcsl 033 data and file structures lab s3-3
Bcsl 033 data and file structures lab s3-3Bcsl 033 data and file structures lab s3-3
Bcsl 033 data and file structures lab s3-3
 
Computer programing w
Computer programing wComputer programing w
Computer programing w
 
week-11x
week-11xweek-11x
week-11x
 
Bcsl 033 data and file structures lab s2-3
Bcsl 033 data and file structures lab s2-3Bcsl 033 data and file structures lab s2-3
Bcsl 033 data and file structures lab s2-3
 
Functions & Procedures [7]
Functions & Procedures [7]Functions & Procedures [7]
Functions & Procedures [7]
 

Viewers also liked

Qtp Interview Questions
Qtp Interview QuestionsQtp Interview Questions
Qtp Interview Questionskspanigra
 
Presentation Inventory Managment System
Presentation Inventory Managment SystemPresentation Inventory Managment System
Presentation Inventory Managment SystemAlinur Seddik
 
Resume Shweta Subhedar Bhide
Resume Shweta Subhedar BhideResume Shweta Subhedar Bhide
Resume Shweta Subhedar BhideShwetaS
 
Manoj resume
Manoj resumeManoj resume
Manoj resumetekwissen
 
Inventory management
Inventory managementInventory management
Inventory managementsaurabhsabiba
 
Manual testing interview question by INFOTECH
Manual testing interview question by INFOTECHManual testing interview question by INFOTECH
Manual testing interview question by INFOTECHPravinsinh
 
Inventory management system
Inventory management systemInventory management system
Inventory management systemcopo7475
 

Viewers also liked (7)

Qtp Interview Questions
Qtp Interview QuestionsQtp Interview Questions
Qtp Interview Questions
 
Presentation Inventory Managment System
Presentation Inventory Managment SystemPresentation Inventory Managment System
Presentation Inventory Managment System
 
Resume Shweta Subhedar Bhide
Resume Shweta Subhedar BhideResume Shweta Subhedar Bhide
Resume Shweta Subhedar Bhide
 
Manoj resume
Manoj resumeManoj resume
Manoj resume
 
Inventory management
Inventory managementInventory management
Inventory management
 
Manual testing interview question by INFOTECH
Manual testing interview question by INFOTECHManual testing interview question by INFOTECH
Manual testing interview question by INFOTECH
 
Inventory management system
Inventory management systemInventory management system
Inventory management system
 

Ffffffffffff

  • 1. C program to add two numbers #include<stdio.h> //#inclide<conio.h> int main() { int a, b, c; printf("Enter two numbers to addn"); scanf("%d%d",&a,&b); c = a + b; printf("Sum of entered numbers = %dn",c); return 0; } Output of program: