Program of addition of two numbers in c language.

#include<stdio.h>
#include<conio.h>
void main()
{
 int num1,num2,add;
 clrscr();
 printf("enter two numbers =");
 scanf("%d%d",&num1,&num2);
 add=num1 +num2;
 printf("the addition of two numbers is =%d",add);
 getch();
}

Output->

enter two numbers =5 
                                      7
the addition of two numbers is=12 



Comments

Popular posts from this blog

Introduction of java Programming language.

Stack data structure.