C Practical and Assignment Programs-Pattern Printing 5

preview_player
Показать описание
C Practical and Assignment Programs-Pattern Printing 5
In this video we are going to write a program to print a pattern consisting of numbers . 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:
1
1 0
1 0 1
1 0 1 0
1 0 1 0 1

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

thanku so much for these all tutorials....

suhailsiddiqui
Автор

here we can also use if-else statement na?
like if column no is even print 0 and vise versa

simranvijayvargiya
Автор

awesome sir, perfectly explained, keep it up sir 👍👍

SmartProgramming
Автор

hey can u tell me wats wrong with this
for(int row=1;row<=n;row++) [n=no. of rows]
{for(int col=1;col<=row;col+2)
{cout<<"1";
}
for(int col1=2;col<=row;col+2)
{cout<<"0";
}
cout<<"\n";

ankurkandi
Автор

how to write a c program to create an expanding square box? plz help

vandanasridhar
Автор

Sir How to print a name in right triangle

jirrasrivani
Автор

Thank you for this pattren sir
sir i need this pattren

1A
2B3
3C4D
4D5E6

PublicPulseTelugu
Автор

If a string is given like mango print it in alphabetical order like "agmn0" of mango.

satyadurgaabishetti
Автор

hi I would like to ask how can I do this

0
10
101
1010

thank you

ashleycruz
Автор

"can u plz write a c program to print "Y" pattern

evanzelinejessy
Автор

Hi sir
1 0 1 0 1
0 1 0 1 0
1 0 1 0 1

How to write program for above using for loop in java

Bunny-pgqv
Автор

Can i have the code for this pattern?
A
B  C
D  E  F
G  H  I  J
K  L  M  N  O

driemsabit
Автор

Can you print
A. A
A B. B. A
A B C B A

nabilshaikh
Автор

How to do these pattern???.. please help me
1010101 10101 101 1

krishnarock
Автор

1
01
010
1010....please explain this...

sumibarua
Автор

1
1 2
1 2 3
1 2 3 4
1 2 3
1 2
1
Please code this pattern

tanyarathor