You are on page 1of 4

Programming C++

1. Open Dev-C++

2. Select new Source File

3. Write the program.

#include<iostream>
#include<stdlib.h>
int main()
{
using namespace std;
int X,Y,sum;
cout<<"\nEnter first number : ";
cin>>X;
cout<<"\nEnter second number: ";
cin>>Y;
sum = X + Y ;
cout<< "\nsum = "<< sum ;
system("PAUSE");
return 0 ;
}
4. Run the program (press f10)

5. Save the file.

6. Compilation Process.

7. Excute the program.

8. Insert the data.

9. Result.

Question/Discussion
1. How to
a. Compilation process
i. Press f9 to compile.
ii. Click

2.

b. Excute the Program


i. Press f10
ii. Click
What is C++ Programming?
a. C++ (pronounced as cee plus plus, /si pls pls/) is a general-purpose
programming language. It has imperative, object-oriented and generic
programming features, while also providing facilities for low-level memory
manipulation.

You might also like