Q basic WAP to store distance in cm. Now convert and display it into meter.
Answers
Answered by
3
Solution.
The given code is written in QBASIC.
CLS
INPUT "Enter distance in cm: "; CM
PRINT "The distance in metre is: "; CM / 100
END
Explanation.
- Line 1: Clears the screen.
- Line 2: Accept the distance in cm.
- Line 3: Display the distance after converting it into metre.
- Line 4: End of program.
See attachment for output.
Attachments:
Similar questions
Math,
28 days ago
English,
1 month ago
Math,
9 months ago
Math,
9 months ago
Political Science,
9 months ago