examples of if then statement
Answers
Answered by
1
Answer:
Examples:-
- If it rains, you will get wet.
- You will get wet if it rains.
- If Sally is late again I will be mad.
- If it rains, you will get wet.
- I will be mad if Sally is late again.
Statement:-
The syntax for if statement is as follows: if (condition) instruction; The condition evaluates to either true or false. True is always a non-zero value, and false is a value that contains zero.
Explanation:
Hope it helps you....
Follow me and mark my answer as BRAINLIST.....
Thank my answers.... Thank u and have a nice day....
Similar questions