WAP to print the square root of a positive number
Answers
Answered by
0
Explanation:
WAP to print the square root of a positive number
Answered by
1
public class Square
{
public static void main(int num)
{
int square;
if(num<=0)
System.out.println("The number is not positive");
else{
square=num*num;
System.out.println("Square of "+num+" is "+square);
}
}
}
.
.
.
.
HOPE THIS HELPS YOU
.
.
.
.
PLEASE MARK AS BRAINLIEST AND FOLLOW ME TOO
Similar questions