Contact Learn C
Copy

Program 386: Symbol Steps Pattern

Program 386: Symbol Steps Pattern
 
#include<stdio.h>
main()
{
 int i,j,size,c=2;
 printf("Enter size\n");
 scanf("%d",&size);
 printf("\n");
 for(i=1;i<=size;i++)
 {
  for(j=1;j<=c;j++)
  {
   printf("* ");
  }
  if(i%2==0)
  {
   c+=2;
  }
  printf("\n");
 }
}
Explanation:
 //Coming Soon


Output:
Symbol Steps Pattern


Donate

Download App and Learn when ever you want

Get it on PlayStore
Get it on Amazon App Store
Get it on Aptoide