pattern 10: C Program to print triangle Star pattern ( Pencil Shape Pattern)

Introduction:

We are going to write a C program to print the Pencil Shape Pattern using the stars. We will use the two for loops. One is outer for loop another is inner for loop.

The Outer for loop is responsible for the Rows printing and Inner for loop is responsible for Columns printing.

The program should take the input from the user. And print the pencil shape pattern like below.

For example, If the user input is 5. The program should print following output.

Write a C Program to print below pattern (Pencil Shape Pattern):

 

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

Note: This is one theSeries of pattern programs in C.

Pencil Shape Pattern Program :

 

Pencil Shape Pattern Program Output:

Pencil-shape-pattern-program-in-c-language

 

 

 

Similar Star pattern programs:

 

 

More C programs:

 

 

C Tutorials with simple Examples:

 

 

 
 

Venkatesh

Hi Guys, I am Venkatesh. I am a programmer and an Open Source enthusiast. I write about programming and technology on this blog.

You may also like...

1 Response

  1. […] Pattern 10: Pencil Shape Star Pattern […]

Leave a Reply