iam currently on a program that reads two integers values, with the second has to be a non-zero integer.
here is my codes so far: Does it look ok ?
PLEASE HELP !:(
public class Lab2App
{
public static void main(String[] args)
{
// Calculate 5 and 3 with relation operators.
int num1 = 5;
int num2 = 3;
//Print the data to the console
System.out.println("Input integers: 5 and 3");
System.out.println("5+3="+num1+num2);
System.out.println("5-3="+num1 - num2);
System.out.println("5*3="+num1*num2);
System.out.println("5 div 3="+num1/num2);
System.out.println("5 mod 3="+num1 - num2);
System.out.println("Completed");
}
}