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.