Red de conocimiento informático - Material del sitio web - Langostino viene a ayudar

Langostino viene a ayudar

1.#includelt;iostream.hgt;

void main()

{

int x, y, r, min =369, n, m;

para (x=1; xlt; = (369-39)/69; x )

{

y= (369-69*x)/39;

r=369-69*x-39*y;

if(rlt;min)

{

min=r; n=x; m=y;

}

}

coutlt;lt; lt;lt;nlt;lt;"m="lt;lt;mlt;lt;"min="lt;lt;minlt;lt;endl;

}