7705957289
7705957289 7705957289
  • 17-09-2019
  • Computers and Technology
contestada

What is an “if” statement used for in a program?

Respuesta :

robz62
robz62 robz62
  • 17-09-2019
An if statement is a programming conditional statement that, if proved true, performs a function or displays information. ... In the example above, if the value of X were equal to any number less than 10, the program would print, or display, "Hello John" on the console when the script is run.
Answer Link

Otras preguntas

For the average worker, factory work was usually (varied, engaging, exhausting)
Are the verb tenses in the sentence consistent, or do they shift unnecessarily? During the game, the coach dozes off, but he soon jumped back into action. A. Th
Why was the Warsaw Pact created?
in order to become a better writer, you must read
Jane is making a healthy snack of trail mix to sell as part of a fundraiser for the school hiking club. The mixture will have 2.5 times as many kilograms of rai
Which statement correctly describes John Adams's presidency? A. He was the first bachelor to serve as president and named his aunt as "first lady." B. He kept t
the length of a rectangle is 4 inches greater than the width. the perimeter of the rectangle is 24in what are the dimensions of the rectangle
doves are the only birds that drink with their heads down true or false
Which factor contributed most to the U.S. acquisition of Florida in 1819? The defeat of Great Britain in the War of 1812 U.S. military victories in Florida duri
What were three achievements of the Aztecs in art?