Computer Science, asked by joonie45, 1 month ago

what is the purpose of IF function? Explain with an example

please don't directly give the answer from go*gle​​

Answers

Answered by SattwikRay
1

Answer:

The IF function is a logical statement. If the first statement is false, then it will execute the second program / statement.

EXAMPLE (python) :

if ("2+2")  = = 4

        then(

print ("Correct!"))              

else

    print("Wrong")

Thnx and have a nice day!

✌(●'◡'●)

Similar questions