Răspuns:
using namespace std;
#include <iostream>
#include <stdlib.h>
#include <math.h>
void main() {
int suma,mon1,mon10,mon100,t;
cout<<"Suma:";
cin>>suma;
t=suma;
mon100=suma/100;suma=suma-mon100*100;
mon10=suma/10;suma=suma-mon10*10;
cout<<"Suma "<<t<<" este formata din \n";
cout<<"De 100 avem "<<mon100<<"\n";
cout<<"De 10 avem "<<mon10<<"\n";
cout<<"De 1 avem "<<suma<<"\n";
cout<<"Numarul minim de monede este "<<(mon100+mon10+suma)<<"\n";
}