c pattern programs

c pattern programs

c pattern programs

c pattern programs are collection of 81 programs which I have developed during my MCA. Here I would like to share with all of you hope this will help you to build your logic. C Pattern program is the best way to develop logic. If you want to download all c pattern programs then goto the bottom of the page and click on download.

C is a very popular language for the students of BCA, mca, pgdca and computer science to develop logic and one of the best way to develop your programming logic is to develop as much c pattern program as you can. you have reached to the right place to develop your logic, I have added already 250+ C programs which will surely help you to develop your logic, Let’s Start buidling Logic !

C Pattern Sample Program 1

 

//Written by Adarsh Patel

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();

int n,i,j;

printf(“Enter Number of Rows : “);
scanf(“%d”,&n);

for(i=1;i<=n;i++)
{
for(j=1;j<=i;j++)
printf(“* “);

printf(“\n”);
}

getch();
}

 

C Pattern Sample Program 2

//Written by Adarsh Patel

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();

int n,i,j,k;

printf(“Enter Number of Rows : “);
scanf(“%d”,&n);

for(i=1;i<=n;i++)
{
for(k=1;k<=n-i;k++)
printf(” “);

for(j=1;j<=i;j++)
printf(“*”);

printf(“\n”);
}

getch();
}

 

C Pattern Sample Program 3

//Written by Adarsh Patel

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();

int n,i,j,k;

printf(“Enter Number of Rows : “);
scanf(“%d”,&n);

for(i=n;i>=1;i–)
{
for(j=1;j<=i;j++)
printf(“*”);

printf(“\n”);
}

getch();
}

 

C Pattern Sample Program 4

//Written by Adarsh Patel

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();

int n,i,j,k;

printf(“Enter Number of Rows : “);
scanf(“%d”,&n);

for(i=n;i>=1;i–)
{
for(k=0;k<=n-i;k++)
printf(” “);

for(j=1;j<=i;j++)
printf(“*”);

printf(“\n”);
}

getch();
}

 

C Pattern Sample Program 5

//Written by Adarsh Patel

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();

int n,i,j,k=1;

printf(“Enter Number of Rows : “);
scanf(“%d”,&n);

for(i=1;i<=n;i++)
{
for(j=1;j<=i;j++)
{
printf(“%d “,k);
k++;
}

printf(“\n”);
}

getch();
}

 

C Pattern Sample Program 6

//Written by Adarsh Patel

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();

int n,i,j,l,k=1;

printf(“Enter Number of Rows : “);
scanf(“%d”,&n);

for(i=1;i<=n;i++)
{
for(l=1;l<=n-i;l++)
printf(” “);

for(j=1;j<=i;j++)
{
printf(“%d”,k);
k++;
}

printf(“\n”);
}

getch();
}

 

Sorry, There are 81 Programs which is not possible to add here every program but you can download all 81 programs using download link at the bottom.

Download All C Pattern Program Collection

Adarsh Patel

My Self Adarsh Suryakant Patel. Currently I am working as Assistant Professor at Parul Instiute of Engineering and Technology, MCA Department, Limda, Vadodara. Major Responsibility : * Lectures * Organizing Training and Expert Sessions for * Placement and Recruitment * Faculty Representative