Untitled
unknown
plain_text
8 months ago
374 B
3
Indexable
import java.util.*;
class chiggzeggwater{
Scanner obj=new Scanner(System.in);
double r1,r2,r3,rs,rp;
void main(){
System.out.println("Enter r1,r2,r3");
r1=obj.nextDouble();
r2=obj.nextDouble();
r3=obj.nextDouble();
rs=r1+r2+r3;
rp=1/rs;
System.out.println("The rs is="+rs);
System.out.println("The rp is="+rp);
}
}Editor is loading...
Leave a Comment