Hi everyone,

Today i have a question about how can i write one code for all shapes like,

1234
2341
3421
4231

or

55555
55555
45555
34555
23455
12345

Thanks alot.

Recommended Answers

All 2 Replies

Please elaborate what these numbers mean. You say they represent shapes. How? Are these vertices? Length of sides? What?

first off , i am confused that the thread is not what title depicts.(title is not appropriate)
i learned loops yesterday and that's why i can do that but i won't write code for you because if i do so then you won't try to think about logic.

if you really want to get helped then you must post your attempts here. then i will 100% help you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.