15.3k views
0 votes
#include

using namespace std;

int main()

{

cout << "My first C++ program.";

cout << "The sum of 2 and 3 = " << 5; .............................Output

cout << "7 + 8 = " << 7 + 8;

return 0; }

User Tjstankus
by
5.3k points

1 Answer

2 votes

Answer:

The output of the code is following:-

My first C++ program.The sum of 2 and 3 = 57 + 8 = 15

Step-by-step explanation:

You should include a header in this program other wise it will not work.

The first cout statement will print My first C++ program. in one line and after that the second cout will print The sum of 2 and 3 = 5 in the same line because there is no new line character is there and the third cout statement will print 7 + 8 = 15 that too in the same line.

User Zysce
by
5.1k points