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

Why the program doesn't have any output?

When I run the above code, no output is shown? Why is it like this despite the fact I had declared the function? https://code.sololearn.com/cr0NMyfB3G9s/?ref=app

26th Nov 2022, 5:14 PM
Root
Root - avatar
2 Respuestas
+ 1
You never call dollar(), you forward declared dollar() at line 6, and do the same again at line 9. Just call dollar Line 9: dollar(); // no `void` before function name
26th Nov 2022, 5:37 PM
Ipang
+ 1
Ipang thank you so much.
26th Nov 2022, 5:39 PM
Root
Root - avatar