Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Basic Help With Delphi


  • Please log in to reply

#1
Yppolitia

Yppolitia

    Member

  • Member
  • PipPip
  • 74 posts
So Im studying Computing at college and we are learning Delphi and have literally spend a lesson doing it so its very basic. Basically I need help with what im doing wrong and what I need to add. I know the compiler points out your mistakes but theres things I need to add but I dont know how to quite put them on the scripting.

Basically what Im trying to do is make a basic piece of software that once the user enters a whole number of pounds sterling i.e. 30 then it will come up with all the possibilities of what it can be divided by, e.g:
1 x 20
2 x 5

and so on. Here is what I have so far:

var
wholenumber;

begin
WriteLn('Enter an amount in Pounds Sterling : ');
ReadLn(wholenumber);



end.


I know its short but I dont know how to involve the DIV and MOD and where.

Please help, I need to get this done A.S.A.P for my project.
  • 0

Advertisements







Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP