AGUAS, RAYMOND LAURENCE S.
MITOUS
OCTOBER 05, 2024
public class Hello_World {
public static void main(String[] args) {
System.out.println("HELLO World :)");
System.out.println("Raymond Laurence");
System.out.println("Aguas");
int a = 2000000;
int b = 1000000;
int c = a+b; //addition
int d = a-b; //subtraction
long e = a*b; //multiplication
float f = a/b; //division
int g = a % b; //modular
boolean h = true; //boolean
boolean i = false; //Boolean
System.out.println(a);
System.out.println("Sum = " + c);
System.out.println("difference = " + d);
System.out.println("Product = " + e);
System.out.println("Quotient = " + f);
System.out.println("Remainder = " + g);
if (a<b) {
System.out.println(h);}
else {
System.out.println(i);
}
if (a>b) {
System.out.println(h);}
else {
System.out.println(i);
}
if (a==b) {
System.out.println(h);}
else {
System.out.println(i);
}
if (a!=b) {
System.out.println(h);}
else {
System.out.println(i);
}
}
}