Homework 5, assigned MAR. 6 due MAR 20 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 calls method subtract in a while loop until the the method returns a value that doesn't change, i.e., 495. This is somewhat tricky. Here are some suggestions: