Quote Originally Posted by kamil77 View Post
Code:
   while (cents -= nickel)
    {
        cents -= nickel;
        coins++;
    }
    
    while (cents -= penny)
    {
        cents -= penny;
        coins++;
    }
Think about your conditions in while loop....