What is the role of the if statement? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the role of the if statement?

Allows a program to select an action based on a users input.

5th Jan 2019, 3:05 AM
Siboniso Liberty Majola
Siboniso Liberty Majola - avatar
2 Answers
+ 2
Siboniso Liberty Majola , it's Q&A discussions section! If you have any Programming related question or problem then feel free to ask here! But you have asked question and answered your question also. If someone asks here, it will be better to give answers of that question (if you can)! And you can also use your personal feed for such Q&A. https://www.sololearn.com/discuss/1316935/?ref=app Happy learning and coding on SoloLearn. 😉😉
5th Jan 2019, 3:58 AM
AL Araf
AL Araf - avatar
+ 2
Thank you for the heads up.
5th Jan 2019, 7:40 AM
Siboniso Liberty Majola
Siboniso Liberty Majola - avatar