QUOTE(biddy @ 2 Feb, 2007 - 11:37 AM)

I am trying to write a program that uses a function multiple to determine for a pair of integers whether the second integer is a multiple of the first. The function should return 1 (true) if its the case or 0(flase). The funtion should be used in a prgram that inputs a series of pairs of integers.
If I am not wrong then you are saying that you need to find whether second number is multiple of first.
This mean :
if
number 1 = 12 and
number 2 = 48 then
number 2 is multiple of number1 as 12 X 4 = 48. am I right?
If yes then...
as Amadeus said first take numbers in 2 different variables.
then just do number2 % number1. [checking reminder]
If it's 0 then number2 is multiple of number1
else it is not.
And for series of pairs you can call this function in loop, right?
Hope this will help you.