What is the difference between if and for statement
Answers
Answered by
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
0
Answer and explanation both
*Hope it will help you*
Attachments:
Similar questions
Science,
6 months ago
English,
6 months ago
Computer Science,
1 year ago
English,
1 year ago
Math,
1 year ago