+ 2

How i make a program which print pattern of cube??

19th Aug 2018, 1:53 AM
Rahul Jain
Rahul Jain - avatar
11 Answers
+ 2
Are you looking to create a cube that is always the same size? You could just cout the design you'd want
19th Aug 2018, 12:04 PM
AuCeallaigh
AuCeallaigh - avatar
+ 2
Rahul Jain could you please share sample output you expect with input?
19th Aug 2018, 3:52 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 1
No...I want to input the number of rows and then I want the pattern according to my input
19th Aug 2018, 1:40 PM
Rahul Jain
Rahul Jain - avatar
+ 1
if you see a diamond pattern in c language...just like that I want to make a cube pattern
19th Aug 2018, 4:33 PM
Rahul Jain
Rahul Jain - avatar
+ 1
------------- / /\ / / \ / / \ ------------- \ / \ \ / \________ \/
19th Aug 2018, 5:33 PM
Rahul Jain
Rahul Jain - avatar
+ 1
Rahul Jain create a simple output first with hard-coded values (use space first and required character)... based on that hard coded values, you will get idea what to be placed in loop for which characters
19th Aug 2018, 6:02 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 1
ok I will try.....thank you
20th Aug 2018, 2:13 AM
Rahul Jain
Rahul Jain - avatar
0
You could do for loops or an array. Take in the row/column size as a variable and then run the loop to print it the desired amount/size.
19th Aug 2018, 4:33 PM
AuCeallaigh
AuCeallaigh - avatar
0
* *** * this is diamond I guess... what is cube pattern? I am unaware It seems
19th Aug 2018, 5:01 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
0
something like this🖕🖕🖕
19th Aug 2018, 5:34 PM
Rahul Jain
Rahul Jain - avatar
0
good luck... feel free to ask if you get confused or stuck
20th Aug 2018, 12:34 PM
Ketan Lalcheta
Ketan Lalcheta - avatar