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;
- Modulus division of two numbers in C++ Program
- Subtraction of two numbers in C++ Program
- Multiplication of two numbers in C++ Program
- Division of two numbers in C++ Program
0 Comments