How to print this pattern using c or c++? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

How to print this pattern using c or c++?

***** * * * * * * * * *****

23rd Sep 2018, 3:36 AM
Sreejith P
Sreejith P - avatar
2 ответов
+ 2
Sree use a for loop (for row count as 6)... in for loop have another for loop (for column count as 5)... print * in column loop if row is first or last.. else print space.. irrespective of row, print star for first and last column let me know if you have any further questions
23rd Sep 2018, 3:47 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
23rd Sep 2018, 12:10 PM
Sreejith P
Sreejith P - avatar