0% found this document useful (0 votes)
122 views5 pages

Open Programming C++

The document provides instructions for writing a C++ program to calculate the sum of two integers. The program prompts the user to enter two numbers, adds them together, and displays the result. The steps include opening a C++ program, creating a new source file, writing the code to calculate the sum, running and saving the project, compiling the code, executing the program, inputting the numbers, and viewing the output.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
122 views5 pages

Open Programming C++

The document provides instructions for writing a C++ program to calculate the sum of two integers. The program prompts the user to enter two numbers, adds them together, and displays the result. The steps include opening a C++ program, creating a new source file, writing the code to calculate the sum, running and saving the project, compiling the code, executing the program, inputting the numbers, and viewing the output.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

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