whats the error | Sololearn: Learn to code for FREE!
Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję
- 1

whats the error

#include <iostream> using namespace std; int main() { int a,b,c; a=10; b=8; c=a+b; cout<<c; return 0 };

9th May 2018, 6:13 PM
hritik mrdula
hritik mrdula - avatar
3 odpowiedzi
+ 1
May be here: return 0; }
9th May 2018, 6:23 PM
Averand
+ 1
Your return statement needs a semicolon: return 0; Not the curly bracket
9th May 2018, 6:33 PM
TurtleShell
TurtleShell - avatar
0
thank you very much
3rd Jun 2018, 4:50 PM
hritik mrdula
hritik mrdula - avatar