Zadatak9

#include <iostream>

using namespace std;

int main()
{
int rac;
cin>>rac;
cout<<(100-rac)/50<<“ * 50KM“<<endl;
cout<<(100-rac)%50/20<<“ * 20KM“<<endl;
cout<<(100-rac)%50%20/10<<“ * 10K“<<endl;
cout<<(100-rac)%50%20%10/5<<“ * 5KM“<<endl;
cout<<(100-rac)%50%20%10%5/2<<“ * 2KM“<<endl;
cout<<(100-rac)%50%20%10%5%2/1<<“ * 1KM“<<endl;
return 0;
}

Advertisements