Cognizant Coding Question- 30

2 comments on “Cognizant Coding Question- 30”


  • tidke.mahesh007

    //self developed logic
    #include
    int main()
    {
    int no,i,j,num=3;
    no=4;
    for(i=0;i<no;i++)
    {
    for(j=0;j0;j–)
    {
    printf(“*”);
    }

    printf(“\n”);
    }

    }


    • tidke.mahesh007

      //correct code goes her mistake in above ones
      #include
      int main()
      {
      int no,i,j,num=3;
      no=4;
      for(i=0;i<no;i++)
      {
      for(j=0;j0;j–)
      {
      printf(“*”);
      }

      printf(“\n”);
      }

      }