#include "stdafx.h" #include using namespace::std; int main() { int a, b, n; cout << "Rub = "; cin >> a; cout << "Kop = "; cin >> b; cout << "Amount = "; cin >> n; a = a*n; b = b*n; while (b >= 100) { b = b - 100; a++; } cout << endl << a << "rub. " << b << "kop." << endl; _gettch(); return 0; }