Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

A little help would be nice...

Name: Anonymous 2010-05-01 5:17

Hello /prog/rammers.

Can someone help me with a C dilemma I currently have?

We have to make a program that calculates how many ones, fives and tens you need given a whole number amount.

Hints, anyone?

Name: Anonymous 2010-05-01 7:17

[code]
g=null;
t=(i-(r=i%10))/10;
f=(r-(s=r%5))/5;
o=s;

Should work for i >= 10, assuming i belongs to N and / is integer division with truncation.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List