Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int a,b,c;
  4. int main()
  5. {
  6. {
  7. a=3;
  8. b=-2;
  9. c=10;
  10. }
  11.  
  12. if(a+b<c)
  13. {
  14.  
  15.  
  16.  
  17. {
  18.  
  19. a*=2;
  20. b-=1;
  21. }
  22.  
  23. {
  24.  
  25. if (c>0)
  26. c+=a;
  27. else
  28. c+=b;
  29. }
  30. }
  31. else
  32.  
  33. c+=a*b;
  34.  
  35. {
  36.  
  37.  
  38. cout<<" liczba a wyniesie "<<a<<endl;
  39. cout<<" liczba b wyniesie "<<b<<endl;
  40. cout<<" liczba c wyniesie "<<c<<endl;
  41.  
  42. }
  43.  
  44. return 0;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement