Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  abc
Language: C/C++
Code:
#include<stdio.h>
int main()
{
    int i,j,k,c=1,x=3;
    for(i=0;i<4;i++)
    {
        for(k=0;k<x;k++)
        printf(" ");
        for(j=1;j<=c;j++)
        {
            if(j%2!=0)
            printf("%d",i);
            else
            printf("*");
            
        }
        printf("n");
        c+=2;
        x--;
    }
    return 0;
}

          
Comments: