SHARE
TWEET

Untitled

a guest Nov 22nd, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Scanner s = new Scanner(System.in);
  2.         int a = 0;
  3.         int b;
  4.         for (int i = 1; i < 6; i++) {
  5.             System.out.println("Enter number: ");
  6.             b = s.nextInt();
  7.             a = a+b;
  8.             }
  9.             b = a/5 ;
  10.             System.out.println(b);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top