38.9k views
2 votes
Give a real life of an if statement

User Nelia
by
3.8k points

1 Answer

5 votes

Answer:

If Joe wants to eat an apple then he eats an apple.

Step-by-step explanation:

The if statement checks if Joe "wants to eat an apple", if it turns out he does not then nothing will happen.

User Michael Sheaver
by
4.1k points