Skip to main content

Pattern Printing-simple pattern





#include<stdio.h>
#include<conio.h>
void main
{
         int i;
       
         for(i=0;i<=4;i++)
         {
               printf("*");
         }
         getch();
}


o/p: ****


Comments

Popular posts from this blog

Pattern Printing - 4 by 4 pattern

#include<stdio.h> #include<conio.h> void main() {          int i, j;                for(i=0;i<=3;i++)          {               for(j=0;j<=3;j++)               {                      printf("*");               }          }          getch(); } o/p: ****        ****        ****        ****