|
Program
to find sum of two numbers.
|
|
#include<stdio.h>
|
|
#include<conio.h>
|
|
void
main()
|
|
{
|
|
int
a,b,s;
|
|
clrscr();
|
|
printf(“Enter
two no: ”);
|
|
scanf(“%d%d",&a,&b);
|
|
s=a+b;
|
|
printf(“sum=%d”,s);
|
|
getch();
|
|
}
|
|
Output:
|
|
Enter
two no: 5
|
|
6
|
|
sum=11
|
No comments:
Post a Comment