My issue
My code
class Codechef
{
public static void main (String[] args)
{
System.out.print(9 - 2);
System.out.print(30 - 5);
}
}
Learning course: Learn Java
Problem Link: CodeChef: Practical coding for everyone
class Codechef
{
public static void main (String[] args)
{
System.out.print(9 - 2);
System.out.print(30 - 5);
}
}
Learning course: Learn Java
Problem Link: CodeChef: Practical coding for everyone
As mentioned in the question,values should be printed on separated lines,we should use
System.out.println(9-2);
Secondly it has asked to divide 30 by 5 not to subtract,use
System.out.println(30/5);
Thank you