write a Java program to calculate the value of given expression: 1/a^2+2/b^2+3/c^2
Answers
Answered by
3
Answer:
Plz mark as brainliest
Explanation:
import java.util.*;
class brainly
{
public static void main()
{
Scanner in=new Scanner(System.in);
int a,b,c;
float ex;
System.out.println("enter three number");
a=in.nextInt();
b=in.nextInt();
c=in.nextInt();
exp=((float)1/(a*a))+((float)1/(b*b))+((float)1/(c*c));
System.out.println("value of expression="+exp);
}
}
Similar questions