You are on page 1of 4

1.

Open programming C++

2. Select new source file

3. Write this program.

/* This is a program That computes the sum of two integer number */ # include < iostream.h> Main ( ) { int X , Y , sum ; cout <<" \nEnter first number : ; cin >> X ; cout <<\nEnter second number : ; cin >> Y; sum = X + Y ; cout << \nsum =<< sum ; return 0;

4. Run the project

5. Save the file under project 1.

6. Compilation process.

7. Execute the program.

8. Insert the data.

9. Result.

You might also like