Comment out a few lines to display
on the screen.
2 plus 3 is equal to 5
on the screen.
Note: Don't comment out the lines with variable declarations.
package com.qa.task.task01.task0108;
/*
2 + 3 = 5
*/
public class Solution {
public static void main(String[] args) {
int a = 3, b = 2;
System.out.print("two");
System.out.print(b);
System.out.print(" plus ");
System.out.print(" minus ");
System.out.print(a);
System.out.print("three");
System.out.print(" is equal to ");
System.out.print(" equals ");
System.out.print("five");
System.out.print(a + b);
}
}
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.