Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.79 KB | None | 0 0
  1. public static void display_statistics( int num1, int num2, int num3 ) {
  2.      
  3.        // Enter your code
  4.       int maxi = Math.max(Math.max(numOne, numTwo), numThree);
  5.       int mini = Math.mini(Math.mini(numOne, numTwo), numThree);
  6.       System.out.print((numOne + numTwo + numThree));
  7.       System.out.print(Math.max(Math.max(numOne, numTwo), numThree));
  8.       System.out.print(Math.max(Math.max(numOne, numTwo), numThree) -
  9.         Math.min(Math.min(numOne, numTwo), numThree));
  10.       double avg = ((numOne + numTwo + numThree) / 3);
  11.       System.out.print(avg);
  12.       System.out.print(Math.sqrt(((numOne - avg) * (numOne - avg) + (numTwo - avg) * (numTwo - avg) + (numThree - avg) * (numThree - avg)) / (n - 1))
  13.       System.out(mini + (numOne + numTwo + numThree - maxi - mini) +  maxi);
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement