Have the user to get either a decimal number as well


Have the user to get either a decimal number as well and get back an answer.

import java.util.Scanner;
public class AOR2
{
public static void main(String[] arg)
{
Scanner input = new Scanner(System.in);

System.out.print("Please Enter the Length: ");
int Length = input.nextInt();
if(Length >=0)
System.out.println("Valid Entry");
else
System.out.println("Invalid Entry");

System.out.print("Please Enter the Width: ");
int Width = input.nextInt();
if(Width >= 0)
System.out.println("Valid Entry");
else
System.out.println("Invalid Entry");

}
}

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Have the user to get either a decimal number as well
Reference No:- TGS0137639

Expected delivery within 24 Hours