Write a program in java to assign a side with a value and print the area of the square.
Answers
Answered by
9
Answer:
I will explain only you the snippet.
int side;
Scanner sc=new Scanner (System.in);
int area;
side = sc.nextInt ();
area=side*side;
System.out.println (area);
Similar questions