program to generate 333 22 1 series
#include<stdio.h>
void main()
{
int i,j,n;
clrscr();
printf("how many lines you need to print :"); //program to generate 333 22 1 series
scanf("%d",&n);
for(i=n;i>0;i--)
{
for(j=0;j<i;j++)
{
printf("%d",i); // program to generate 333 22 1 series
}
printf("\n");
}
getch();
}
// program to generate 333 22 1 series
void main()
{
int i,j,n;
clrscr();
printf("how many lines you need to print :"); //program to generate 333 22 1 series
scanf("%d",&n);
for(i=n;i>0;i--)
{
for(j=0;j<i;j++)
{
printf("%d",i); // program to generate 333 22 1 series
}
printf("\n");
}
getch();
}
// program to generate 333 22 1 series
No comments:
Post a Comment