make a java program by using math class pls fast
Answers
Answered by
1
import java. util. Scanner;
import java. lang. *;
class brainly
{
public static void main(String args [])
{
int n, result;
Scanner sc=new Scanner(System. in);
System. out. println ("Enter the number");
n=sc. nextDouble ();
result=Math. sqrt (n)
System. out. println ("Result :"+result)
}
}
Mark as brainliest
import java. lang. *;
class brainly
{
public static void main(String args [])
{
int n, result;
Scanner sc=new Scanner(System. in);
System. out. println ("Enter the number");
n=sc. nextDouble ();
result=Math. sqrt (n)
System. out. println ("Result :"+result)
}
}
Mark as brainliest
Similar questions
Math,
7 months ago
Social Sciences,
7 months ago
Science,
1 year ago
Math,
1 year ago
Math,
1 year ago