Computer Science, asked by amaira1609, 9 months ago

Question 1:
Write a program in Java to find the square of a number using assignment
statement.​

Answers

Answered by anindyaadhikari13
25

Here is your answer.

class Program

{

static void main(int n)

{

int square=n*n;

System.out.println("Square of the number is: "+square);

}

}

Similar questions