#include <stdio.h>
int main (void)
{
int i,j;
for(i=1;i<=6;i++)
{
for(j=1;j<=6-i;j++)
printf(".");
for(j=1;j<=i+i-1;j++)
{
if(i%2==0)
printf("3");
else
printf("1");
}
printf("\n");
}
system("pause");
return 0;
}
The Output is Given Below:
.....1 ....333 ...11111 ..3333333 .111111111 33333333333
0 comments:
Post a Comment