Friday, 27 March 2015

Triangle Shape of Numeric Number in C



#include<stdio.h>
int main()
{
 int a=0;
 for(int j=0;j<6;j++)
 {
  for (int i=0;i<=j;i++)
  {
   a++; 
   if(a==10)
   {
    a=0;
   }
   printf("%d ",a);
  }
  printf("\n");
 }
 return 0;
}

0 comments:

Post a Comment

 

Subscribe to our Newsletter

Contact our Support

Through the contact form

Our Team Memebers