#include
#include
void main()
{
float R1,R2,R3,R4,R5;
float resultRp1;
float resultRs;
float resultRp2;
float resultRst;
// proses:
cout << "masukkan nilai R1=" ;
cin >>R1 ;
cout << "masukkan nilai R2=" ;
cin >>R2;
cout << "masukkan nilai R3=";
cin >>R3 ;
cout << "masukkan nilai R4=" ;
cin >>R4 ;
cout << "masukkan nilai R5=" ;
cin >>R5 ;
resultRp1 =(R1*R2)/(R1+R2);
resultRs =((R1*R2)/(R1+R2)+R3) ;
resultRp2 =(R4*R5)/(R4+R5) ;
resultRst = (((R1*R2)/(R1+R2)+R3)+ (R4*R5)/(R4+R5)) ;
cout<<"nilai Rp1="<
cout<<"nilai Rs="<
cout<<"nilai Rst="<
return;
No comments:
Post a Comment