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
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
Social Sciences,
6 months ago
Math,
6 months ago
Biology,
11 months ago
Chemistry,
1 year ago
Science,
1 year ago