Computer Science, asked by ridhisingh794, 6 months ago

WAP to print the square root of a positive number ​

Answers

Answered by mangalasingh00978
0

Explanation:

WAP to print the square root of a positive number

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