Using Windows Batch in command prompt. Implement mod by 0 (find the remainder), with error trapping, using if and while() commands, How: Append your name, current date and time to a NEW file called results.txt Use a while loop. If the user enters the value 999 for the first or the second number, you must exit the while loop immediately. Ask the user to enter the first number. Ask the user to enter the second number. If the second number is ZERO inform the user and ask for a correct second number. If the second number is NOT a zero, do the operation, display all numbers in this computation using labels, and add them to the results.txt file.

Leave a Reply

Your email address will not be published. Required fields are marked *