Regarding output statement
Title
Question
Sir while writing output DISTANCE quotes have not been used whereas in previous tutorials quotes were used frequently.
Java Numerical-Datatypes 01-02 min 50-60 sec
Answers:
Here in this tutorial we have created a variable named distance. To print the value of a variable, variable name is mentioned in print statement without the quotes.
To display any message on the console the message has to be included in double quotes.
in the video the distance is an variable
in previous tutorials quotes are used to console to print it out
Login to add comment