View Single Post
Old 02-04-2007, 02:11 PM   #6 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,705
redhead is on a distinguished road
Then I would say the structure would be something like:
  • if amount bigger than 100, then dollars equals amount/100 and change amount to amount%100
  • if amount bigger than 25, then quarters equals amount/25 and change amount to amount%25
  • and so forth...

//edit
ML is a functional programming language the Moscow ML version was developed by an old professor of mine. So I started out learning LISP and ML as the first two programming languages.

By the way, welcome here at Code Newbie
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001

Last edited by redhead; 02-04-2007 at 03:12 PM.
redhead is offline   Reply With Quote