Homework 5,
T-H section, assigned MAR. 25 due TUE APR 1 at 11:59pm
M-W section, assigned MAR. 26 due WED APR 3 at 11:59pm

Part A

Write a program in which the main method calls a method with the heading public static int subtract(int num) that takes a three digit integer num and does the following

Part B

Write another program that contains method subtract and calls it in a while loop. The loop executes until the method returns a value that doesn't change, i.e., 495. This is somewhat tricky. Here are some suggestions:


Hand in only part B