My Blog
Articles related to programming, computer science, technology and research.

C program to print a pattern

02/05/2016 Categories: Patterns. Comments Off on C program to print a pattern

C program to print the following pattern: 1 2*2 3*3*3 4*4*4*4 4*4*4*4 3*3*3 2*2 1 Take starting value as 1 and n = 4. The program is as follows:

Input and output for the above program is as follows:

 

Read the rest of this entry »

C program to print a pattern

02/05/2016 Categories: Patterns. Comments Off on C program to print a pattern

Print the following pattern when n is given as 3 1 2*3 4*5*6 2*3 1 C program to print the above pattern is given below:

Input and Output for the above program is as follows:

 

Read the rest of this entry »

C program to print a pattern

02/05/2016 Categories: Patterns. Comments Off on C program to print a pattern

A C program to print the following pattern for n = 4 1*2*3*4*17*18*19*20 5*6*7*14*15*16 8*9*12*13 10*11 The program is as follows:

Output of the above program is as follows:

 

Read the rest of this entry »
Scroll Up