Matt, its probably a CS assignment.... im not much on programming in C, i can do well in Java and C++, but youll use, int to define a var, and printf to print...mod is the %, and youll have to define a main and compile. for more info, take a look at lecture slides 22 and on i think...this is from one of the cs courses i took last semester..hope it helps http://www.cc.gatech.edu/classes/AY2001/cs1322/slides/previous/spring2001/leahy/index.html ------------------ ------ AIM:Turbo SC300 ------