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
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
Get step-by-step solutions from verified subject matter experts
