Computer Science, asked by sinhaminal243, 9 months ago

5, 12. What is an if-statement ? Give two examples.​

Answers

Answered by abhirock51
14

Answer:

The if statement allows you to control if a program enters a section of code or not based on whether a given condition is true or false. One of the important functions of the if statement is that it allows the program to select an action based upon the user's input.

Answered by teamsoumya2
9

An if statement is a programming conditional statement that, if proved true, performs function or displays information. Below is a general example of an if - statement , not specific to any particular programming language. If ( x < 10 ) { Print "Hello John" }

Explanation:

Hope you like my Answer

So, please Mark as Brainliest....

Similar questions