Advertisement
MaciekxD

Untitled

Mar 6th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include <iostream>
  2. #include <algorithm>
  3. using namespace std;
  4. int main()
  5. {
  6. int wklad=100;// 10 zl co rok
  7. double dafne;
  8. int rok=2;
  9. double b=10;
  10.  
  11. double kapital;
  12. double cleo=1000;
  13. double zarokek;
  14. double c=0.05;// pierwszy rok 5 kolejny wiecej
  15.  
  16.  
  17.  
  18.  
  19. for(int i=0; i<rok;i++)
  20. {
  21.  
  22. dafne=wklad+(b*rok);
  23.  
  24.  
  25.  
  26.  
  27. }
  28.  
  29.  
  30.  
  31.  
  32.  
  33. cout<<"Zarobki Dafne: "<<dafne;
  34.  
  35. cout<<endl;
  36.  
  37.  
  38. cout<<"zarobki Cleo: "<<cleo;
  39. cout<<endl;
  40.  
  41. cout<<rok;
  42.  
  43.  
  44.  
  45.  
  46. return 0;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement