SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- Scanner s = new Scanner(System.in);
- int a = 0;
- int b;
- for (int i = 1; i < 6; i++) {
- System.out.println("Enter number: ");
- b = s.nextInt();
- a = a+b;
- }
- b = a/5 ;
- 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.