To input number in inches and convert it into feet and inches.(Qbasic)

To input number in inches and convert it into feet and inches.(Qbasic)
CLS
INPUT "Enter the value in inches"; in
f = in \ 12
rn = in MOD 12
PRINT "The equivalent result is"; f; "feet and"; rn; "inches"
END

Notes: Here,
in - represents the data in inches.
f - represents the data result in feet.
rn - represents the remaining data in inches after feet is calculated.

Share :

Facebook Twitter Google+
Back To Top

facebook main

counter

Powered by Blogger.