#include #include using namespace std; int main() { SetConsoleOutputCP(CP_UTF8); float fAnlage, fZinssatz,fEndgeld = 0; int iJahre = 0; cout << "wie viel geld hast du? "; cin >> fAnlage; cout << "Wie viel zinssatz? "; cin >> fZinssatz; fEndgeld = fAnlage; do { fEndgeld += fEndgeld * (fZinssatz/100); iJahre += 1; } while (fEndgeld < 1000000); cout << iJahre; return 0; }