Search:
Forum
General C++ Programming
Nested For Loops
Nested For Loops
Apr 20, 2010 at 7:09pm UTC
webepsu
(1)
Hi i need to write a code that creates a certain pattern
X
X X
XX X
XX X
XXX X
XXX X
XXX X
XXXX X
XXXX X
XXXX X
XXXX X
Thanks in Advance
Apr 20, 2010 at 7:17pm UTC
justAbeginner
(70)
fou could use a for() function to do that
Apr 20, 2010 at 7:34pm UTC
Albatross
(4553)
A for loop with a switch case would be useful for you. If you want your code to look really good, use a for loop in a for loop: the outer would increment a value i which would be passed somehow to the inner for loop which would print your pattern.
-Albatross
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs