#include<stdio.h>
main()
{
int n;
printf("Enter n: "); scanf("%d",&n);
for(;;)
{
for(int i=0;i<n;i++)
{
//_______descending
for(int j=1;j<=n-i;j++)
{
printf(" ");
}
//quad rain
for(int j=0;j<n;j++)
{
printf(",");
}
//quad space
for(int j=0;j<(n/2);j++)
{
printf(" ");
}
//quad rain
for(int j=0;j<n;j++)
{
printf(",");
}
//quad space
for(int j=0;j<(n/2);j++)
{
printf(" ");
}
//quad
for(int j=0;j<n;j++)
{
printf(",");
}
//quad space
for(int j=0;j<(n/2);j++)
{
printf(" ");
}
//quad
for(int j=0;j<n;j++)
{
printf(",");
}
//quad space
for(int j=0;j<(n/2);j++)
{
printf(" ");
}
//quad
for(int j=0;j<n;j++)
{
printf(",");
}
//quad space
for(int j=0;j<(n/2);j++)
{
printf(" ");
}
//quad
for(int j=0;j<n;j++)
{
printf(",");
}
//________________
printf("\n");
}
}
}
main()
{
int n;
printf("Enter n: "); scanf("%d",&n);
for(;;)
{
for(int i=0;i<n;i++)
{
//_______descending
for(int j=1;j<=n-i;j++)
{
printf(" ");
}
//quad rain
for(int j=0;j<n;j++)
{
printf(",");
}
//quad space
for(int j=0;j<(n/2);j++)
{
printf(" ");
}
//quad rain
for(int j=0;j<n;j++)
{
printf(",");
}
//quad space
for(int j=0;j<(n/2);j++)
{
printf(" ");
}
//quad
for(int j=0;j<n;j++)
{
printf(",");
}
//quad space
for(int j=0;j<(n/2);j++)
{
printf(" ");
}
//quad
for(int j=0;j<n;j++)
{
printf(",");
}
//quad space
for(int j=0;j<(n/2);j++)
{
printf(" ");
}
//quad
for(int j=0;j<n;j++)
{
printf(",");
}
//quad space
for(int j=0;j<(n/2);j++)
{
printf(" ");
}
//quad
for(int j=0;j<n;j++)
{
printf(",");
}
//________________
printf("\n");
}
}
}
No comments:
Post a Comment