vp0415

Ex4

Oct 5th, 2014
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Ex4 {
  4.  
  5.     public static void main(String[] args) {
  6.         Scanner input = new Scanner(System.in);
  7.         System.out.println("Enter width: ");
  8.         int width = input.nextInt();
  9.         System.out.println("Enter heigth: ");
  10.         int height = input.nextInt();
  11.         System.out.println(width * height);
  12.     }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment