Ask Question

What is an "if" statement used for in a program?

+1
Answers (1)
  1. 10 February, 16:42
    0
    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is an "if" statement used for in a program? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers