Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int wklad=100;
- double dafne=100;
- int rok=1;
- double b=10;
- double cleo=100;
- double c=1.05;
- double d=0;
- do {
- for (int i = 0; i < rok; i++) {
- dafne = wklad + (b * rok);
- }
- for (int i = 0; i < rok; i++) {
- cleo = cleo * c;
- }
- rok++;
- }
- while(cleo>dafne);
- cout << "Zarobki Dafne: " << dafne;
- cout << endl;
- cout << "zarobki Cleo: " << cleo;
- cout << endl;
- cout << rok;
- cout<<rok;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement