Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void display_statistics( int num1, int num2, int num3 ) {
- // Enter your code
- int maxi = Math.max(Math.max(numOne, numTwo), numThree);
- int mini = Math.mini(Math.mini(numOne, numTwo), numThree);
- System.out.print((numOne + numTwo + numThree));
- System.out.print(Math.max(Math.max(numOne, numTwo), numThree));
- System.out.print(Math.max(Math.max(numOne, numTwo), numThree) -
- Math.min(Math.min(numOne, numTwo), numThree));
- double avg = ((numOne + numTwo + numThree) / 3);
- System.out.print(avg);
- System.out.print(Math.sqrt(((numOne - avg) * (numOne - avg) + (numTwo - avg) * (numTwo - avg) + (numThree - avg) * (numThree - avg)) / (n - 1))
- System.out(mini + (numOne + numTwo + numThree - maxi - mini) + maxi);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement