answersLogoWhite

0

IF statements provide a way to branch from one part of the program to another, when a certain condition is met. For example, IF (X>Y) THEN A=X-Y ELSE A=Y-X gives the same result as A=|X-Y| (absolute value). The program performs the X-Y calculation if X is larger than Y, and it branches to the Y-X calculation if Y is larger than X (or if they are equal).

User Avatar

Wiki User

9y ago

Still curious? Ask our experts.

Chat with our AI personalities

TaigaTaiga
Every great hero faces trials, and you—yes, YOU—are no exception!
Chat with Taiga
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi

Add your answer:

Earn +20 pts
Q: What is are IF statements?
Write your answer...
Submit
Still have questions?
magnify glass
imp