Please fix this | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please fix this

Guys check this and how to fix it? {ima newb} #include <iostream> using namespace std; /* run this program usig the console pauser or add your own getch, system("pause") or input loop */ int main() { int first,nothing int value cout << "Please,enter your number.\n"; cin >> first; cout << "Please,enter another number.\n"; cin >> nothing; value = first + nothing; cout <<"The answer is" << value; << endl; return 0; }

5th Nov 2019, 12:05 PM
Kedal ae
Kedal ae - avatar
2 Answers
+ 4
first two lines: ; missing. second last line: ; after value has to go.
5th Nov 2019, 12:08 PM
HonFu
HonFu - avatar
+ 1
Atleast you seem to lack 2 semicolons.
5th Nov 2019, 12:07 PM
Seb TheS
Seb TheS - avatar