Why i always can't creat a piramid namber ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why i always can't creat a piramid namber ?

i am so dizzy

25th Nov 2017, 12:36 AM
thifah lathifah
thifah lathifah - avatar
14 Answers
+ 9
please attempt this task and post what code you come up with. Hint: One way is to use nested loops. Also search the code playground to see how others have done this. Try search term such as triangle or pyramid I found this by searching triangle I.e https://code.sololearn.com/cVO5y12P6sel/?ref=app
25th Nov 2017, 2:04 AM
jay
jay - avatar
+ 8
try making something simpler first. like 1 12 123 1234 12345 once you do this it will help with your understanding of how to create a pyramid
25th Nov 2017, 1:44 AM
jay
jay - avatar
+ 4
Can't understand what you mean .
25th Nov 2017, 12:39 AM
RZK 022
RZK 022 - avatar
+ 4
What language do you want the help in?
25th Nov 2017, 1:53 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
This question is irrelevant and/or incomplete
25th Nov 2017, 12:41 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
i think she wants to create looping pattern, build pyramid base on number
25th Nov 2017, 12:45 AM
Andika Romansyah
+ 2
that i mean, sorry i can't speak english well can you help me, for creat pyramid like this : 1 232 34543 4567654 567898765 with c++ code...
25th Nov 2017, 12:54 AM
thifah lathifah
thifah lathifah - avatar
+ 2
please help me.. that my task 1 12 123 1234 12345 if like that i can
25th Nov 2017, 1:52 AM
thifah lathifah
thifah lathifah - avatar
+ 2
@thifah can you reverse it, so 1 12 123 1234 12345
25th Nov 2017, 2:03 AM
Andika Romansyah
+ 2
add space in empty
25th Nov 2017, 2:04 AM
Andika Romansyah
+ 2
@thifah like this one... https://code.sololearn.com/cu79SO93veOm/?ref=app edited: i fixed it, now it showing pyramid of number update: now this for cpp, its almost the same. https://code.sololearn.com/cYqIsokarQp0/?ref=app
25th Nov 2017, 4:15 AM
Andika Romansyah
0
@andika that use 2x looping right, first loping space and second looping number
25th Nov 2017, 2:09 AM
thifah lathifah
thifah lathifah - avatar
0
@thifah sorry it took so long to reply, i dont know about cpp, i just learn it base on course 😆 ngomong2 thifah org indo juga kan?
25th Nov 2017, 4:16 AM
Andika Romansyah
0
@andika haha iya nih
26th Nov 2017, 2:47 AM
thifah lathifah
thifah lathifah - avatar