id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

davereed@creighton.edu csc222 > average2
prev  |  next  |  chance

average2() -- You are given four integers and must calculate and return their average, rounded to the nearest integer.


average2(1, 2, 3, 4) → 3
average2(1, 2, 4, 8) → 4
average2(5, 5, 5, 5) → 5

...Save, Compile, Run (ctrl-enter)

public int average2(int num1, int num2, int num3, int num4) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Post-solution available

Copyright Nick Parlante 2017 - privacy