Discover a world of knowledge at Westonci.ca, where experts and enthusiasts come together to answer your questions. Get immediate and reliable solutions to your questions from a knowledgeable community of professionals on our platform. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A platform.

How do I double check to make sure I have the correct number for a variable?​

Sagot :

Answer:

Use Print statement

Step-by-step explanation:

The most common way to check this would be to use the print statement in whatever language you are using to have the value of that variable print to the screen/console. That way you know exactly what value your variable has stored within it at the moment that the print statement runs. Each language has a similar but different print statement like so...

Python: print(variable)

Java: System.out.println(variable);