Computer Science, asked by arshadq, 1 year ago

Write a program in java to assign a side with a value and print the area of the square.​

Answers

Answered by Shivesh17a
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