/*
2 + 3 = 5
*/
public class Solution {
public static void main(String[] args) {
/* on screen to display the following line */
int a = 2;
int b = 3;
int c = a+b;
String s1 = " plus ";
String s2 = " is equal to ";
// System.out.print("2 plus 3 is equal to to 5");
System.out.print(a+s1+b+s2+c);
}
}
package com.codegym.task.task01.task0108;
/*
2 + 3 = 5
*/
public class Solution {
public static void main(String[] args) {
/* on screen to display the following line */
int a = 2;
int b = 3;
int c = a+b;
String s1 = " plus ";
String s2 = " is equal to ";
// System.out.print("2 plus 3 is equal to to 5");
System.out.print(a+s1+b+s2+c);
}
}