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
Science,
4 hours ago
English,
8 hours ago
Math,
7 months ago
Math,
7 months ago
Political Science,
7 months ago