Explore BrainMass

For Loop structure can be written using a WHILE Loop

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

Any Loop structure implemented with a FOR Loop structure can be written using a WHILE Loop structure?

a. True
b. False
c. Not enough information given to determine the truth of the statment

Answer = b

© BrainMass Inc. brainmass.com October 24, 2018, 7:12 pm ad1c9bdddf

Solution Preview

Answer is a (true)..please find the explanation attached.

Ans: True

WHILE and FOR both are loop structure. For ...

Solution Summary

Loop structures which can be written using a WHILE loop is discussed.

See Also This Related BrainMass Solution

The Loop Control Structure in the C# Language.

This is a program that I am working on. It is supposed to simulate the roll of a pair of dice 100 times, then write the results to a file. Once the file is written, the user clicks the read file button to read the file. I have the write file/roll dice button working. I have the read file working, it displays the results in a textbox. What I need help with is to get the dice to roll 100 times instead of just one. So the read file results will show the results of 100 rolls of the dice. The file tab also has instructions as to how the program should work.

See the attached file.

View Full Posting Details