Ask Question
9 July, 13:07

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

+2
Answers (1)
  1. 9 July, 15:30
    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?
Get an answer to your question ✅ “What is an "if" statement used for in a program? ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers