double UAH;
cout << "Enter UAH:";
cin >> UAH;
cout << (int)UAH << " grn " << (int)((UAH - (int)UAH)*100+0.5) << " kop"<<endl;
system("pause");
cout << "Enter UAH:";
cin >> UAH;
cout << (int)UAH << " grn " << (int)((UAH - (int)UAH)*100+0.5) << " kop"<<endl;
system("pause");
Комментариев нет:
Отправить комментарий