Ask Question
11 May, 01:19

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

+3
Answers (1)
  1. 11 May, 01: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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers