src/main/java/MyMain.java
public static int numQuarters(double money) {
        double w = 0;
        double coins = 0;
        while (w < money) {
            w = w + 0.25;
            coins ++;
        }

        return (int)coins;
    }
// You should use a while loop!
You should use a while loop!
You should use a while loop!
public static int numQuarters(double money) {
        double w = 0;
        double coins = 0;
        while (w < money) {
            w = w + 0.25;
            coins ++;
        }
        return (int)coins;
    }
public static int numQuarters ( double money ) { double w = 0 ; double coins = 0 ; while ( w < money ) { w = w + 0.25 ; coins ++ ; } return ( int ) coins ; }
You should use a while loop!
You should use a while loop!