Advertisement
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 srednia44;
- import java.util.Scanner;
- /**
- *
- * @author student
- */
- public class Srednia44 {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- // TODO code application logic here
- Scanner sc = new Scanner(System.in);
- System.out.println("Podaj a:");
- int a = sc.nextInt();
- System.out.println("Podaj b:");
- int b = sc.nextInt();
- System.out.println("Sednia wynosi: " + (a*b)/2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement