Computer Science, asked by inderritu123, 11 months ago

Q2. W.A.P in Java to find the value of following expression R (using the given formula)
taking the values of ri as 10 and r2 as 15.
R=(rl*r2)/(rl+r2)​

Answers

Answered by venkumahanti17it
0

Answer:

Explanation:

class inderritu

{

public static void main(String args[])

{

 int r,r1=10,r2=15;

 int a=(r1*r2);

 int b=(r1+r2);

r=a/b;

 System.out.println("The answer is: "+r);

}

}

Similar questions