package Dz;
import java.util.Scanner;
public class SimpleCalculator {
public static void main(String[] args) {
try(Scanner dev = new Scanner(System.in)) {
int a, b, c, d, max, min;
double e;
System.out.println("Pleasee enter number A");
a = dev.nextInt();
System.out.println("Pleasee enter number B");
b = dev.nextInt();
System.out.println("a = "+a);
System.out.println("b = "+b);
c = a + b;
System.out.println("a + b = "+c);
c = a - b;
System.out.println("a - b = "+c);
c = a * b;
System.out.println("a * b = " +c);
c = a / b;
System.out.println("a / b = " +c);
c = (double) (a / b);
System.out.println("a / b =" +c);
c = a % b;
System.out.println("a % b = " +c);
c = a ^ b;
System.out.println("a ^ b = " +c);
e = Math.pow(a, b);
System.out.println(e);
e = Math.min(a, b);
System.out.println("min = " +e);
e = Math.max(a, b);
System.out.println("max = " +e);
}
}
}