Question: What is the main difference between if and while? a . The if block is executed only once. The while block is executed multiple times.
What is the main difference between if and while?
a The if block is executed only once. The while block is executed multiple times.
b There is no difference between if and while.
c if and while are both executed multiple times.
d The while block is executed only once. if is executed multiple times.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
