+ 2
How i make a program which print pattern of cube??
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
+ 2
Rahul Jain could you please share sample output you expect with input?
+ 1
No...I want to input the number of rows and then I want the pattern according to my input
+ 1
if you see a diamond pattern in c language...just like that I want to make a cube pattern
+ 1
-------------
/ /\
/ / \
/ / \
------------- \ /
\ \ /
\________ \/
+ 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
+ 1
ok I will try.....thank you
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.
0
*
***
*
this is diamond I guess... what is cube pattern? I am unaware It seems
0
something like thisđđđ
0
good luck... feel free to ask if you get confused or stuck