Number pattern 11 in C

Write a C program to print the given number pattern using loop. How to print the given number pattern of m rows and n columns using for loop in C programming. Logic to print the given number pattern using loop in C program.

Example

Input

Input rows: 5
Input columns: 5

Output

12345
23456
34567
45678
56789

Read more

Number pattern 10 in C

Write a C program to print the given number pattern using loop. How to print the given number pattern of m rows and n columns using loop in C programming. Logic to print the given number pattern using for loop in C program.

Example

Input

Input rows: 5
Input columns: 5

Output

12345
12345
12345
12345
12345

Read more

Number pattern 9 in C

Write a C program to print the given number pattern using for loop. How to print the given number pattern using for loop in C programming. Logic to print the given number pattern using loop in C program.

Example

Input

Input rows: 5
Input columns: 5

Output

11111
22222
33333
44444
55555

Read more

C program to print chessboard number pattern with 1 and 0

Write a C program to print the given chessboard number pattern of 1’s and 0’s using loop. How to print chessboard number pattern of n rows and n columns using for loop in C programming. Logic to print chessboard number pattern of n rows and n columns using for loop in C program.

Example

Input

Input rows: 5
Input columns: 5

Output

10101
01010
10101
01010
10101

Read more

C program to print box number pattern of 1 and 0 with cross center

Write a C program to print the given number pattern of 1’s and 0’s with cross in the center using loop. How to print box number pattern of 1, 0 with X in center using loop in C programming. Logic to print box number pattern with cross center using loop in C program.

Example

Input

Input rows: 5
Input columns: 5

Output

10001
01010
00100
01010
10001

Read more

C program to print box number pattern with plus in center

Write a C program to print the given box number pattern of 1’s and 0’s with plus in center of the box using loop. How to print box number pattern with plus in center using for loop in C programming. Logic to print box number pattern with plus in center of the box in C program.

Example

Input

Input rows: 5
Input columns: 5

Output

11011
11011
00000
11011
11011

Read more

C program to print box number pattern of 1 with 0 center

Write a C program to print the given box number pattern of 1 with 0 center using loop. How to print box number pattern of 1’s with 0 as center using for loop in C programming. Logic to print box number pattern with different center using for loop in C program.

Example

Input

Input rows: 5
Input columns: 5

Output

11111
11111
11011
11111
11111

Read more

C program to print box number pattern with 1 and 0

Write a C program to print the given box number pattern with 1’s and 0’s using loop. How to print box number pattern using one’s and zero’s using for loop in C programming. Logic to print box number pattern with 1’s as border and 0’s at center in C program.

Example

Input

Input rows: 5
Input columns: 5

Output

11111
10001
10001
10001
11111

Read more

C program to print number pattern with 1, 0 at alternate columns

Write a C program to print the given number pattern series of 1’s and 0’s at alternate columns using loop. How to print number pattern with one’s at even column and zero’s at odd column using for loop in C programming. Logic to print given number pattern of 1 and 0 at alternate columns.

Example

Input

Input rows: 5
Input columns: 5

Output

01010
01010
01010
01010
01010

Read more

C program to print number pattern with 1, 0 at alternate rows

Write a C program to print the given number pattern of 1’s and 0’s at alternate rows using loop. How to print square number pattern of one and zero with one at odd row and zero at even row using loop in C programming. Logic to print number pattern of 1 and 0 with alternate rows.

Example

Input

Input rows: 5
Input columns: 5

Output

11111
00000
11111
00000
11111

Read more