Why can't i make it like this: | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Why can't i make it like this:

int a; a=100 int b; b=a cout<<a+b<<endl;

29th Oct 2018, 7:34 AM
M.O.HONOR
M.O.HONOR - avatar
3 ответов
+ 2
Two ; are missing.
29th Oct 2018, 7:43 AM
HonFu
HonFu - avatar
+ 2
thx m8
29th Oct 2018, 7:46 AM
M.O.HONOR
M.O.HONOR - avatar
+ 1
there is an error in line 2 & 4 there should be a semicolon at the end...!! corrected: int a; a=100; int b; b=a; cout<<a+b<<endl;
29th Oct 2018, 7:44 AM
Suraj Jha
Suraj Jha - avatar