Advertisement
Guest User

MillasBinThomas

a guest
Nov 18th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. float B=0;
  6. float Z=0;
  7. float L=0;
  8. float J=1;
  9.  
  10. cout << " Anzulegender Geldbetrag in Euro ";
  11. cin >> B ;
  12. cout << " Jahreszinssatz in Prozent ";
  13. cin >> Z ;
  14. cout << " Laufzeit in Jahren ";
  15. cin >> L ;
  16.  
  17.  
  18. while (L>0) {
  19. B=B+(B*(Z*0.01));
  20. cout << " Wert nach " << J << " Jahren: " <<B << endl;
  21. J=J+1;
  22. L=L-1;}
  23. return 0;
  24.  
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement