assignment question????

Any help or ideas for this would be useful? im using microsoft c++ 6.0

Design, code and test a C++ program to print out the following where:
The letters in the first line are all generated by various while loops
The letters in the second line are all generated by various do while loops
The letters in the third line are all generated by various for loops
And no printf statement may contain more than two letters



GO..................................GO..............................GOGOGOGO................................GO
ONON..........................ONON..............................ONONON............................ONON
UPUPUP.....................UPUPUP...............................UPUP............................UPUPUP
You could start with getting program to output words... then build on that basic principle. Its a good way to learn for yourself.

E.g.
1
2
3
for (loop) {
   print out go three times
}
Last edited on
Topic archived. No new replies allowed.