:::: MENU ::::
  • Suitable for all screen sizes

  • Easy to Customize

  • Customizable fonts.

Wednesday, December 16, 2015


Area of Square:

import java.util.Scanner;
class SquareArea {
   public static void main ()
   {
       System.out.println("Enter Side of Square:");
       Scanner scanner = new Scanner(System.in);
       double side = scanner.nextDouble();
       double area = side*side;
       System.out.println("Area of Square is: "+area);
   }
}

Thank you and make sure to like and comment.

0 comments:

Post a Comment

A call-to-action text Contact us