Pattern 1

// Pyramid

#include<stdio.h>
void main()
{
      int i,s;
for(i=1;i<=5;i++) // for loop that prints *.
{
for(s=1;s<=i;s++)
{
printf("* ");
}
printf("\n");
}
}

Comments

Popular Posts