Comment out a few lines to display 2 plus 3 is equal to 5 on the screen.
Note: Don't comment out the lines with variable declarations.
Requirements:
The program should display "2 plus 3 is equal to 5" on the screen.
Don't change the line that declare variables.
You need to comment out at least one line.
Don't change or add commands responsible for output. You can comment them out.
package com.codegym.task.task01.task0108;
/*
2 + 3 = 5
*/
public class Solution {
public static void main(String[] args) {
System.out.println("2 plus 3 is equal to 5");
}
}
Hi there mate you are not supposed to change the code already present in the exercise the main goal of the exercise is to learn how to comment and uncomment code so reset the exercise and just uncomment and comment code to reach the desired output hope this helps.
+2
This website uses cookies to provide you with personalized service. By using this website, you agree to our use of cookies. If you require more details, please read our Terms and Policy.