How is this possible? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

How is this possible?

I don't know how it can be an error? for(int i=0;i<4;i++); cout<<i;

17th Feb 2019, 6:16 AM
M A Mohmad Ashik
M A Mohmad Ashik - avatar
1 Réponse
+ 8
for (int i =0; i < 4; i++) { cout<<i; } Thats right↑, semicolon means end of line, so cout in your case don't work for for_loop.
17th Feb 2019, 6:24 AM
Николай Шаповаленко
Николай Шаповаленко - avatar