Decode School

Decode School - The School for Problem Solvers

Welcome to my blog. Subscribe and get my latest blog post in your inbox.

Java Program to find area of Square

Get side of square and find area of square

Sample Input 1:

4

Sample Output 1:

16

Program or Solution

					    
							
					    
					

Program Explanation

Get side of a square (using scanner class) Calculate area by multiplying side and side(area = side * side) print area(using System.out.println())