C Practical and Assignment Programs-Pattern Printing 9

preview_player
Показать описание
C Practical and Assignment Programs-Pattern Printing 9
In this video we are going to write a program to print a pattern in form of diamond shape consisting of "*". We are going to use nested for loops ie one loop inside another.The full description of question is provided below. Now this program is written in C programming language but will work in C++.Fell free to provide you suggestion.

Q. To print various patterns using loop constructs like:
*
***
*****
*******
**********
*******
*****
***
*

We The Computer Guys
Shreyas Zagade
Aakash Thakur
Ananya Jain
Рекомендации по теме
Комментарии
Автор

Here for printing spaces in the second case we can use the same for loop as used above that is :::

for(colSpace = totalRows-row ; colSpace >=1 ; colSpace--)

In the second for loop since we have started counting rows from 4 the same logic for printing spaces will work.

nikhilgoyal
Автор

I looking for help with the pattern of : Seven lines of output  as follows: The first consists of 3 spaces followed by a star. The second line consists of 2 spaces followed by a 3 stars. The third consists of one space followed by 5 stars, and the fourth consists just of 7 stars. The fifth line is identical to third, th sixth to the second and the seventh to the first.

deepaksuri
Автор

Thank you sir, it's very helpful

MS-rlrh
Автор

thanks for making me to take intrest in learning in pattern only becoz of ur awesome video

deepaagrawal
Автор

Can you provide me a code whose pattern resembles to a diamond and in between that i have to write AMU, means in the middle line ..

abhitasan
Автор

can u write code only using 3 loops that will print at a time instead of writing two times for each parts because its not look good.

serajhassan
Автор

awesome work sir, keep going, best wishes for future 👍👍

SmartProgramming
Автор

hey write for me a program which prints 6 stars in the first column, 4 in the second, 3 in the third, 2 in the forth.remember there are 8 columns and 6 rows.but the forth row is printed throughout.am waiting thanks

muwangasulaiman
Автор

What if instead of using white spaces I wanted to use "+" ?

DannyKnot
Автор

Thank you so much for your detailed explanation. it was extremly helpful!

arilee
Автор

please make the programs simple and i need a program to accept m*n matrix and generate a (m+1)(n+1)

lynetsvotwa
Автор

Would you be able to write this code, except take in user input for the middle row and have a minimum of 2 stars in each row? Im having a lot of trouble in doing so.
Thanks

esomcmuffin
Автор

hey i saw all the video you install and i liked i want to know what to do if my dev c++ make cmd run then close without show me the solution

zekosalemeh
Автор

how can i form this pattern
*
* *
* * * * *
*
*
*
please help

bonifacemusembi
Автор

sir pls tell, which platform you use to write codes,
i use turbo c

lakhdeepsingh
Автор

how to get the out of 9 stars shape by using c++ program

olsonjames
Автор

Which compiler is this??...can you help.Me to install that on windows10

krishnadevanp
Автор

how we will write the code for N pattern

shristisinha
Автор

how to make program for this output??


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

khanzadaasad
Автор

Sir, in the first nested loop to print * - last video u told the logic is.. but in this video ur saying... one is right ?! plz answer!

skylar