My issue
We can add as many print statements as we want.
Write a program which does the following
Output: 3 + 4
Output: 2 + 1.
Note - Notice that in your output they are printed together without any space between them.
Need answer but this is the code I have written
class CodeChef
{
public static void main (String args)
{
System.out.println(3 + 4);
System.out.println(2 + 1);
}
}
My code
class CodeChef
{
public static void main (String[] args)
{
System.out.println(3 + 4);
System.out.println(2 + 1);
}
}
Learning course: Learn Java
Problem Link: CodeChef: Practical coding for everyone