Why doesn't this code work? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Why doesn't this code work?

https://code.sololearn.com/cUesap0dsCmX/?ref=app This is the fixed code: https://code.sololearn.com/cKA6KB2L9GW3/?ref=app thanks to you all for helping me.

15th May 2023, 7:26 PM
Faran Allah Verdi
Faran Allah Verdi - avatar
3 Respuestas
+ 5
When you figure out what the problem is, don't edit the initial code, make a copy, edit that, and post it. This way the others can have the opportunity to learn from your case.
15th May 2023, 9:08 PM
Евгений
Евгений - avatar
+ 4
Smith Welder Pls avoid giving finished code as answer, because it makes the OP skip the most important part of learning. Prefer giving hints for the OP to find the solution instead.
16th May 2023, 2:12 AM
Emerson Prado
Emerson Prado - avatar
+ 2
A lot going on here! For starters, you can't "#inculde" anything lol. In the sololearn playground specifically, though, you also can't import anything that isn't part of the standard library, so no conio.h That aside, you also can't do "a = b = c", and string literals (in this case "faran allah verdi") need to be enclosed in quotation marks " ". Finally, it won't break the code, but you forgot to add spaces between your words when outputting. Also, it won't hurt anything at all, but you never actually use the variable myhight (and height is spelled wrong, if you care about that).
15th May 2023, 8:17 PM
Orin Cook
Orin Cook - avatar