Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4095
Number of posts: 14004

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Need help with easy program Posted by Nombad on 11 Dec 2012 at 5:48 AM
Hello, i'm rather new to pascal programming and i'm stuck on a pretty
easy program. I was hoping maybe someone would help me get it done.

Okay, so the task is:
Write a program which asks the user for a sum (x). The program has to
issue how this sum is possible to pay with 500, 100, 25, 10 and 1 monetary units. In first priority you must use the larger units.

Example what the result should look like:
Entered sum: 5472
5472 can be payed like this:
10x 500
4x 100
2x 25
2x 10
2x 1


Thanks in advance.
Thread Tree
Nombad Need help with easy program on 11 Dec 2012 at 5:48 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.