Page

Sunday, 17 June 2018

sum program in c

#include<stdio.h>
#include<conio.h>
int main()
{
clrscr();
int a, b , sum;
printf("enter the value a:");
scanf("%d",&a);
printf("enter the value b:");
scanf("%d",&b);
(sum=a+b);
printf("the sum of given number is:");
printf("%d",sum);
getch();
return(0);
}


No comments:

Post a Comment