#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
float U,R1,R2,R3,R,I;
cout<<„U (V)= „;
cin>>U;
cout<<endl<<„R1 (om)= „;
cin>>R1;
cout<<endl<<„R2 (om)= „;
cin>>R2;
cout<<endl<<„R3 (om)= „;
cin>>R3;
R=R1+R2+R3;
I=U/R;
cout<<endl<<„Ukupni otpor R iznosi „<<R<<„oma.“<<endl;
cout<<endl<<„Jacina struje I iznosi „<<I<<„A.“<<endl;
cout<<endl<<„Pad napona U1 je „<<I*R1<<„V.“<<endl;
cout<<„Pad napona U2 je „<<I*R2<<“ V.“<<endl;
cout<<„Pad napona U3 je „<<I*R3<<“ V.“<<endl;
return 0;
}