Discover the answers you need at Westonci.ca, where experts provide clear and concise information on various topics. Our platform offers a seamless experience for finding reliable answers from a network of knowledgeable professionals. Experience the convenience of finding accurate answers to your questions from knowledgeable experts on our 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);