Total newbie, I need more help... If you could just give me a basic structure for what I'm trying to do and an explanation, that would help a whole lot.
Here's my assignment:
1) Write a function divides. The function accepts two parameters: a number and a possible divisor. If the number is evenly divisible by the possible divisor, then the function returns 1 (or TRUE); otherwise the function returns 0 (or FALSE).
2) Write a main function that will print all the numbers between 10 and 50. Next to each number, the program will print the divisors of that number (hint: check all possibly divisors between 1 and the number).
After the entire table is printed, print the number of numbers with only 2 divisors (these are prime numbers).
I'm having trouble getting it all organized in my head in the first place... Any assistance/tips/hints would be very nice, thank you