Write a program in C++ to print the sum of two numbers

0 0
Read Time:21 Second

Here’s the program with the expected output included:

#include <iostream>

using namespace std;

int main() {
    cout << "Print the sum of two numbers :"<<endl; 
    cout << "-----------------------------------"<<endl;
    cout << "The sum of 29 and 30 is: "<<(29 + 30)<<endl;
    return 0;
};

Expected Output:

Print the sum of two numbers : 
----------------------------------- 
The sum of 29 and 30 is: 59
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %