PATTERN 6

/* CLICK THE PIC TO ENLARGE IT /*

#include<stdio.h>
#include<conio.h>
void main()
{
int n,i,j,c=1;
clrscr();

printf("enter a number");
scanf("%d",&n);
for(i=1;i<=5;i++)
{
for(j=5;j>=i;j--)
{
printf("%3.d",c); // YOU CAN CHANGE 3.D TO 2.D OR 4.D AS PER YOUR REQUIREMENTS
c++;
}
printf("\n");
}
getch();
}



SIMPLE PROGRAMS
FUNCTIONS


NUMBERS


STRINGS AND CHARACTERS



Comments