Home  |  IT Zone  |  Tips / Tricks  |  Did You Know  |  Inspirational  |  Health  |  World Infos  |  Insurance  |  Universities  |  Forex  |  Mathematics  |  Illusions  |  Children Day Quotes  |  Fun / Jokes  |  Decent Quotes  |  Birthday Msgs  |  Good Morning Msgs  |  Good Night Msg  |  Husband Wife Jokes  |  Teacher Students Jokes  |  Insult Jokes  |  Love Quotes  |  Sad Quotes  |  Funny Pics  |  Be Aware  |  Articles  |  Simple Joys of Life 

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 :

Twitter
Back To Top

facebook main

Powered by Blogger.