Program 107a
Program Description: Write a program that will get two numbers from the user and output the sum and difference.
Program Name: prog107a=<period>=<ln>
Design the program to run three times before it terminates.
Statements Required: input, output, loop control
Sample Output:
Enter a number: 2 Enter another number: 5 2+5=7 2-5=-3
Enter a number: 12 Enter another number: 6 12+6=18 12-6=6
Enter a number: 20 Enter another number: 5 20+5=25 20-5=15
Br Ca Ho LaN Law Mac McH McL Po Sm St Va Not Listed
Last Name :
Email : If you don't have an email address, use student@brentwoodhigh.com
Select one of the following that describes when and why you are filling out this form: This assignment is in on time. This assignment is in on time, being resubmitted due to a failed submission (I have a copy of the original submission). This assignment is a corrected submission for half the missed credit. This assignment is one day late and will lose 15%. This assignment is more than one day late (half credit at best). This assignment is late because of an EXCUSED absence. This assignment is being resubmitted at the request of the teacher.
Updated: Wednesday, January 13, 2010 11:38 AM