BAGAIMANA CARA MENENTUKAN HAMBATAN :
C++:
#include <iostream>
using namespace std;
main() {
float r1,r2,r3,rtot,rtot1;
cout<<"menghitung hambatan seri"<<endl;
cout<<"R1 =";cin>>r1;
cout<<"R2 =";cin>>r2;
cout<<"R3 =";cin>>r3;
rtot=r1+r2+r3;
rtot1=1/((1/r1)+(1/r2)+(1/r3));
cout<<"Hambatan total(Rtot) ="<<rtot<<endl;
cout<<"RTot paralel ="<<rtot1;
}
OUTPUT C++ DAN RAPTOR :
0 komentar:
Posting Komentar