ahhh, thanks alot. That helped tremendously.
EDIT: cool, thanks alot. This is what I end up with.
Code:
#include <stdio.h>
int main(int argc, char *argv[])
{
int total; //users input total
int quarters; //teh amount of quarters
int dimes; //the amount of dimes
int nickels; //the amount of nickels
int pennies; //the amount of pennies
char line[100]; //line fo' input data
printf("Enter a monitary value less than $1.00: ");
fgets(line, sizeof(line), stdin);
sscanf(line, "%d", &total);
while (total > 99)
{
printf("Please enter a monitary value less than 1 dollar: ");
fgets(line, sizeof(line), stdin);
sscanf(line, "%d", &total);
}
quarters = total / 25;
total = total - (quarters * 25);
dimes = total / 10;
total = total - (dimes * 10);
nickels = total / 5;
total = total - (nickels * 5);
pennies = total;
printf("You need %d quarter(s), %d dime(s), %d nickel(s), and %d pennie(s).\n", quarters, dimes, nickels, pennies);
return (0);
}