I am trying to write a program for work, having never written one before, to double check measurements in feet and inches, but I can't seem to get the program to add 1 to the feet and take away 12 from inches if inches >= 12.

Here is what I have so far:

ClrHome

ClrDraw

Disp "1ST MEASUREMENT"

Input "FEET:",A

Input "INCHES:",B

Input "FRACTIONS:",C

ClrHome

Disp "2ND MEASUREMENT"

Input "FEET:",D

Input "INCHES:",E

Input 'FRACTIONS:",F

Menu("FUNCTION","ADDITION",1,"SUBTRACTION",2)

Lbl 1

C+F->K

B+E+iPart(K)->J

A+D->I

If J>=12

Then

I+1:J-12

Disp I,J,fPart(K)>frac

Pause

End

Im sure its a simple answer and theres a much better way of doing this so thats why I ask.

Also if there is a way to have it ask how many measurements to be inputed and then computing the given number of measurements.

Thanks