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 5:20


while num>0
 if num>=10
  tens++
  num-=10
  next
 if num>=5
  fives++
  num-=5
  next
 if num>=1
  ones++
  num-=1
  next

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