-moz-user-select:none; -webkit-user-select:none; -khtml-user-select:none; -ms-user-select:none; user-select:none;

Wednesday 18 February 2015

Adding two numbers in C++

Now,I am going to make a simple program that will add two numbers without taking input from the user.

1. #include<iostream.h>
2. #include<conio.h>
3. void main( )
4. {
5. int a=5;
6. int b=6;
7. c=a+b;
8. cout<<"Result="<<a+b;
9.  getch( );
10. }


Result


No comments:

Post a Comment