Question: I keep getting error with my program. The error is with the first curly brace. I don't know why this error keeps occuring. Can you

I keep getting error with my program. The error is with the first curly brace. I don't know why this error keeps occuring. Can you help me find the error?

#include using namespace std; /* This program declares an integer type variable and print its value */

int main(){

int myInt; // Declaring int type variable myInt myInt = 57; //assigning value to myInt cout << "Value of the variable myInt: " << myInt << endl; // printing the value of myInt

int myNum; // Declaring int type variable myNum myNum = 10; //assigning value to myNum cout << "Value of the variable myNum: " << myNum << endl; // printing the value of myInt

int result;

result = myInt + myNum; //Print the value of result

cout << "The result is: " << result << endl;

return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!