๐Ÿ“ฆ Lythos0 / Personal-Programming-Projects

๐Ÿ“„ isNoRemainder.java ยท 13 lines
1
2
3
4
5
6
7
8
9
10
11
12
13public class isNoRemainder {
    public static void main(String[] args) {
    double testValue = 54.00;
        double secondTestValue = 80.00;
        double finalTestValue = (testValue + secondTestValue) * 100.00;
        System.out.println("The final value: " + " " + finalTestValue);
        double secondFinalTestValue = finalTestValue % 40.00;
        double theRemainder = secondFinalTestValue;
        System.out.println("The remainder is: " + theRemainder);
        boolean isNoRemainder = (theRemainder == 0) ? true : false;
        System.out.println("isNoRemainder = "  + isNoRemainder);
}
    }