Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package com.kurs_java;
- import java.util.Scanner;
- /**
- *
- * @author Jakub
- */
- public class zadanie13 {
- public static void main(String[] args){
- Scanner scan = new Scanner(System.in);
- System.out.println("Podaj trzy liczby ");
- int a = scan.nextInt();
- int b = scan.nextInt();
- int c = scan.nextInt();
- int suma = a+b+c;
- int sr = suma/3;
- System.out.println(sr);
- }
- }
Add Comment
Please, Sign In to add comment