Convert day into hour use Qbasic
Answers
Answered by
0
Answer:
INPUT "NUMBER OF DAYS=" ; D
HOURS = D*24
PRINT "TIME IN HOURS=" ; HOURS
END
Explanation:
In Q Basic, if the information has to be entered by the user at the time of execution, we use the INPUT statement. If you want to display a message, you have to put it in double quotes. After the quotes, you have to store the values entered by the user in variables, which in the above situation are variable D and variable HOURS. We also need to mention the method, using which Q Basic does the arithmetic calculations.
The output screen for the above situation with the values will be:
NUMBER OF DAYS=? 3
TIME IN HOURS=72
Similar questions