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