Computer Science, asked by nehasrivastava9740, 11 months ago

What is the difference between if and for statement

Answers

Answered by sanju5956
3

if command is only run in one condition in one time and its execute in only one statement in one time

while loop is manly use in infinite time for looping a statement while is executed in many statement in one time

but the for command is only run in The for statement lets you repeat a statement or compound statement a specified number of times. The body of a for statement is executed zero or more times until an optional condition becomes false. You can use optional expressions within the for statement to initialize and change values during the for statement's execution.


sanju5956: hope u like it
Answered by SakshiRoyChatterjee
0

Answer and explanation both

*Hope it will help you*

Attachments:
Similar questions