Ask Question

You need to test a condition and then execute one set of statements if the condition is true. If the condition is false, you need to execute a different set of statements. What structure will you use? (Write out a sample code)

+1
Answers (1)
  1. 19 March, 01:47
    0
    if/else is probably the most simple structure to use. It takes a lot of manually entering strings and what not though. Not sure if this is what you're wondering.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “You need to test a condition and then execute one set of statements if the condition is true. If the condition is false, you need to ...” 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