adsense

Hii, welcome to my site. My name is Om prakash kartik. This blog helps you to learn programming languages concepts.

Addition of two numbers in C++

Addition of two numbers in C++

#include<iostream.h>
#include<conio.h>
 void main()
  {
  int a,b;
  clrscr();
  cout<<"\nEnter two numbers:-";
  cin>>a>>b;
  int sum=a+b;
  cout<<"Sum="<<sum;
  getch();
  }

Output:-

Related Programs;
  1. Modulus division of two numbers in C++ Program
  2. Subtraction of two numbers in C++ Program
  3. Multiplication of two numbers in C++ Program
  4. Division of two numbers in C++ Program

Post a Comment

0 Comments