SHARE
TWEET

First Steps In Coding - Rectangle Area

NikolayNenchev Nov 12th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2. public class RectangleArea {
  3.     public static void main(String[] args){
  4.         Scanner scanner = new Scanner(System.in);
  5.         int a = Integer.parseInt(scanner.nextLine());
  6.         int b = Integer.parseInt(scanner.nextLine());
  7.         int area = a*b;
  8.         System.out.println(area);
  9.  
  10.     }
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top