You are on page 1of 1

Zadanie 3

#include <iostream>

using namespace std;

float Ko, r, O, n;

string koniec;

int main()

do{

cout << "Podaj kapital poczatkowy" << endl;

cin >> Ko;

cout << "Podaj oprocentowanie" << endl;

cin >> r;

cout << "Podaj ilosc lat" << endl;

cin >> n;

for(n>0; n<2; n++)

O=Ko*(r/100)*n;

cout << "Twoje odsetki to: " << O << endl;

cout << "Konczymy na dzis? t-tak" << endl;

cout << "Inny przycisk ponownie uruchomi program" << endl;

cin >> koniec;

}while(koniec!="t");

return 0;

You might also like