Code for pattern 1

Code for Pattern 1

***
***
***


#include<stdio.h>
#include<conio.h>
void main()
{
    int i,j;
    for(i=1;i<=3;i++)
    {
        for(j=1;j<=3;j++)
        {
            printf("*");
        }
        printf("\n");
    }
    getch();
}


Output


Comments

Popular posts from this blog

Code for pattern 6

Code to check leap year