+ 1
Javascript
Which century? The editor is empty? https://www.sololearn.com/post/1773448/?ref=app
12 Respuestas
+ 6
You must write the code to 1) take the year as input from the console, 2) process it, and 3) output the century.
Then press RUN to execute the tests and see the results. Code Coach supplies the input values to the console automatically.
+ 1
do not call main() – this is handled by sololearn.
you seem to use an old course. you can try to reset the code and see if the template code appears.
+ 1
when you reset the course progress, the most recent course version should be loaded.
if you do not plan to reset the course, try to reset the code.
+ 1
i do not find this code project in my course version.
+ 1
Lisa I reset the code, but still doesn't working.
+ 1
Lisa In the lesson 'The math object'.
0
Brian
function main(year) {
var calcCent = Math.ceil(year / 100);
console.log(calcCent);
}
var year = parseInt(readLine(), 10)
main(year)
This is my code but when I run it, it shows no output?
0
Lisa No, I have js intermediate.Old courses are removed
0
Okay, I found it! It's empty for me, too.
0
How to solve it now, when we try to take input from user using parseInt(readLine(), 10); Still it doesn't work.