Question 1:
Write a program in Java to find the square of a number using assignment
statement.
Answers
Answered by
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