Sum of Two Numbers in 'C'
Source Code For Sum of Two Numbers:
#include<stdio.h>
#include<conio.h>
void
main()
{
int
a,
b,
sum;
clrscr();
printf(
"enter two numbers");
scanf(
"%d%d",&
a,&
b);
sum=
a+
b;
printf(
"\n sum of two numbers is %d",
sum);
getch();
}
Output:
No comments:
Post a Comment