C program to add two numbers

1,484 views 1 slides Dec 16, 2014
Slide 1
Slide 1 of 1
Slide 1
1

About This Presentation

for more details go to http://cprogramsblogs.blogspot.in


Slide Content

C program to add two numbers
#include<stdio.h>
//#include<conio.h>

int main()
{
int a, b, c;

printf("Enter two numbers to add\n");
scanf("%d%d",&a,&b);

c = a + b;

printf("Sum of entered numbers = %d\n",c);

return 0;
}
Output of program:
Tags