10 lines
300 B
Java
10 lines
300 B
Java
public class Exercise2 {
|
|
public static void main(String[] args) {
|
|
int x = 1990;
|
|
int y = 2022;
|
|
System.out.println("Your age is:" + (y - x));
|
|
float w = (float) 100.0;
|
|
float h = (float) 1.66;
|
|
System.out.println("Your bmi is:" + (w / (h * h)));
|
|
}
|
|
} |