Sunteți pe pagina 1din 1

Write a programme to find the

sum of two numbers



#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter the value of 1st number");
scanf("%d",&a);
printf("Enter the value of 2nd number");
scanf("%d",&b);
c=a+b;
printf("The sum of two numbers is %d",c);
getch();
}

The Output is :-

S-ar putea să vă placă și