c program for addition


Programm for addition :-

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

Comments