Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

1: #include <iostream>

2: using namespace std;


3: int main ()
4: {
5: int R1,R2,Rp,Rr;
6: cout<<"Uneti dva otpornika"<<endl;
7: cin>>R1>>R2;
8:
9: Rr=R1+R2;
10: cout<<"Redna veza otoprnika je"<<Rr<<endl;
11:
12: Rp=R1*R2/R1+R2;
13: cout<<"Paralelna veza otpornika je"<<Rp<<endl;
14:
15: return 0;
16:
17:
18:
19: }

You might also like