0
How to code this problem
In the office, 2 monitors are connected to each computer. The first line of the given code takes the number of computers as input. Task Complete the code to calculate and output the number of monitors to the console. Sample Input 10 Sample Output 20 Hint Since each computer has 2 monitors, simply multiply the count of the computers by 2 this is already written before i start my code and i dont understand what parseInt does var computers = parseInt(readLine(), 10)
3 Answers
+ 2
parseInt() converts the input to a numeric data type.
Now you need to multiply by 2 and output to console
0
could you please put that in code so that i can study it
0
If you struggle with the code, go back to the previous lessons â there's everything explained that we need to solve the task.
For this task, you need to know, how to do multiplication and to use console.log()