SHARE
TWEET

Untitled

a guest May 22nd, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <cstdlib>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     int r1, r2, spoj, serijski, paralelni;
  9.     cout<<"Unesite vrijednost R1:";
  10.     cin>>r1;
  11.     cout<<"Unesite vrijednost R2"<<endl;
  12.     cin>>r2;
  13.     cout<<"Serijski Spoj=1"<<endl;
  14.     cout<<"Paralelni Spoj=2"<<endl;
  15.     cout<<"Odaberite spoj:"<<endl;
  16.     cin>>spoj;
  17.     if(spoj=1)
  18. {
  19.     serijski=r1+r2;
  20.     cout<<"Ru="<<serijski<<endl;
  21. }
  22.     else(spoj=2);
  23. {
  24.          paralelni=(r1*r2)/(r1+r2);
  25.     cout<<"Ru="<<paralelni<<endl;
  26. }  
  27.     system("PAUSE");
  28.     return EXIT_SUCCESS;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top