Program to find the sum of two numbers

//program to find the sum of two numbers
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,sum;
clrscr();
printf("Enter Two Numbers\n");
scanf("\n%d\n%d",&a,&b);
sum=a+b;
printf("\nSum is =%d",sum);
getch();
return 0;
}

To Run this Program Copy it in text editor and save as .c
Then double click on it and then it will get opened in your compiler.
Click on run.

No comments:

Post a Comment