Challenge: Fix the Code
This lesson presents a challenge to test the concepts covered so far in this chapter.
We'll cover the following
Problem statement #
The code given in this exercise throws a compilation error on execution. Can you identify the reason for the error? And how will you fix the code?
Once you have fixed the code, it should show Fix Me! in the output section.
Input #
import std.stdio;
void fixCode(){
write("Fix Me!")
}
Output #
Fix Me!
Challenge #
This problem is designed for you to practice, so try to solve it on your own first. If you get stuck, you can always refer to the explanation and solution provided in the next lesson. Good luck!
Get hands-on with 1400+ tech skills courses.