Add two number

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


                              Output
 Enter the value of a :5

Enter the value of b :6

Sum    : 11


Comments