Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void checkIfDifferentValues(){
- if (x > y && x > z) {
- System.out.println("X er størst");
- } else if (y > x && y > z) {
- System.out.println("Y er størst");
- } else if (z > x && z > y){
- System.out.println("Z er størst");
- } else {
- System.out.println("Error");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement