Computer Science, asked by anandprakashinjsr, 1 month ago

Q basic WAP to store distance in cm. Now convert and display it into meter.​

Answers

Answered by anindyaadhikari13
3

Solution.

The given co‎‎de 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