Starting With C++: From Control Structures to Objects
Programming Challenge 5-23: Displaying Triangle Pattern With Nested Loops
Write a program that uses a loop to display patterns below:
+
++
+++
++++
+++++
++++++
+++++++
++++++++
+++++++++
++++++++++
++++++++++
+++++++++
++++++++
+++++++
++++++
+++++
++++
+++
++
+
Learning to code? Follow my C++ tutorials for beginners. I do a lot of C++ programming challenges and C++ projects as part of my homework – every day!
If you are learning to program, nothing beats solving real programming exercises and coding challenges.
So don’t forget to subscribe, as I release new programming videos every day!
DOWNLOAD SOURCE CODE: http://www.codinghomework.com/?p=441
Amazon Auto Links: No products found.
this pattern? plz
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
Very helpful, thank you.
Thanks Man! I wish you do more videos about C++.
can i make this
+ +
++ ++
+++ +++
+++++++ +++++
if yes plzz send me source code
#include
#include
#include
dear god thank you
Hi! Pls reply to me cos i just want to ask something.
My professor is asking us to make a program which can be any languages and the program must execute either of the four loop testing techniques. Can u give me a tip what to do or can u give me an example plsssssss.
For the second loop int c = 0; c
how to make this
+
++
+++
++++
+++
++
+
the height depends on the input number of the user(height is the number of the first column)
how to code
#o#o#o#
#o#o#oo
#o#o###
#o#oooo
#o#####
#oooooo
#######
Omg thanks you very much! 😀
Many thanks, bro. Helped me a lot. Thanks.
.
Muito obrigado mano. Me ajudou muito. Valeu.
What if i had to print something like:
*
* *
* *
*************
This pattern? Can we help me with that?
thank you
Great vid, helped out with my homework. Thanks
Very nice lecture.
Can you write me code for following pattern:
Insert uppercase character:E
E D C B A B C D E
D C B A B C D
C B A B C
B A B
A
If you want, you can e-mail mi solution on:
filip.ciller@gmail.com
Thank you
column part is confusing.
thanks for this!
How to display
***
**
*
**
***
In c++
which c++ compiler is this?…i have a dosbox c++ compiler which may have a different way of programming, this didnt work so well….
i think i did the same as you but i got infinite loop do you know why ??
thanks 🙂
THANK YOU SO MUCH
What about this pattern?
/ /
|`\_,–=”=–,_//`|
.” :’. .’: “. /
==) _ : ‘ : _ (==
|>/O _ /O< | | -"~` _ `~"-/ | >|`===. _/ .===`|< .-"-. ===' | '===/ .-"-. .-----{'. '`}---, .-'-. ,/---{.'. '}-----. | `"---"` `~-===-~` `"---"` | | .-------------------------------. | | | | | | | | | | | .--. | | | | ." o __ | | | | _.-" ,( ` | | | | _.-" ,;;| | | | | _.-=" _," ,,;;;' | | | | .-"`_.-"``-..,,;;;;:' | |' | | `"'` `` | |.'` | | /^\ | |'.'`} | | | } '. } | | | /.'`./ | '-------------------------------' /. './ _| _ /.`'./ (.-/.)--------.__________________.-------{.'. { 6 6/ / `.'` ( = /= ______/....................______ .'. /O | | }'.'} ) / | [[[[[[[[[[ === () () () | {'.'/ ( U U | ________ | `~` (| |)| [[[[[[[[[[ === [________] | _w___w_:----------------------------------:_______ | [] [][][][] [][][][] [][][][] [][][] == ===== | | | | [][][][][][][][][][][][][][]_ [][][] [][][][] | | [_][][][][][][][][][][][][]| |[][][] [][][]|| | | [] [][][][][][][][][][][][__| [][][]|| | | [__] [][][][][][][][][][][___] [] [][][]|| | | [_] [_][_____________][_] [_][][][] [__][]|| | '--------------------------------------------------'