A C Program to ask user for to value and add them.




#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,sum;
clrscr();
printf("Enter value of a:");
scanf("%d",&a);
printf("Enter value of b:");
scanf("%d",&b);
sum=a+b;
printf("Sum of a and b is:%d",sum);
}


Comments