answersLogoWhite

0

Fixed loop: this is the loop where the number of iterations are known.

Variable loop: Here the number of iterations are not known

Example for a variable loop.

The pseudocode for variable whille loop

begin

character cchoice

display"enter the choice"

accept cchoice

while(cchoice='y')

begin

//execute the statements

end

end

Rkarthikeyan

User Avatar

Wiki User

11y ago

Still curious? Ask our experts.

Chat with our AI personalities

BeauBeau
You're doing better than you think!
Chat with Beau
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
More answers

A conditional loop will check a conditional statement at the beginning/end of each loop:

char answer;

while(answer == 'y')

{

printf("Loop again? ");

scanf(answer);

}

I'm not sure what a fixed loop is, maybe you are referring to an infinite loop?

while(true)

{

printf("Looping forever!\n");

}

User Avatar

Wiki User

15y ago
User Avatar

Add your answer:

Earn +20 pts
Q: Difference between fixed loop and variable loop?
Write your answer...
Submit
Still have questions?
magnify glass
imp