Advertisement
Asenov

Rectangle Area

Mar 17th, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class RectangleArea {
  4.     public static void main(String[] args) {
  5.         Scanner input = new Scanner(System.in);
  6.         int a = input.nextInt();
  7.         int b = input.nextInt();
  8.         int result = a * b;
  9.  
  10.         System.out.println(result);
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement