Showing posts with label Program to find sum of two numbers.. Show all posts
Showing posts with label Program to find sum of two numbers.. Show all posts

Program to find sum of two numbers.

1] 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