CuteDogAteMineFrog

zadanie 13

Jan 25th, 2020
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package com.kurs_java;
  7. import java.util.Scanner;
  8. /**
  9. *
  10. * @author Jakub
  11. */
  12. public class zadanie13 {
  13. public static void main(String[] args){
  14. Scanner scan = new Scanner(System.in);
  15. System.out.println("Podaj trzy liczby ");
  16. int a = scan.nextInt();
  17. int b = scan.nextInt();
  18. int c = scan.nextInt();
  19.  
  20. int suma = a+b+c;
  21. int sr = suma/3;
  22. System.out.println(sr);
  23. }
  24. }
Add Comment
Please, Sign In to add comment