You're feeling a bit cheeky today aren't you Mats?
AprilJane, you've got off to a bad start, here.
1) You inserted your request, inside another persons request thread - please start your own thread.
2) You need to show some work toward the program - pseudo-code, **something**. Surely you've learned at least enough from
being here, how to write in a header file at the top of your new program, and an int main() function.
Just look around, your start is printed all over this forum.
You might want to read up on the % (modulus or mod) operator in C. It's what you need for your program.
Please don't answer anything in this thread, AprilJane. Start your own thread, please.