Program to print alphabet I in C Language without Graphics

// Program to print alphabet I in C with C Bhasha Gyan

#include<stdio.h>

int main()

{

int i, j;

for (i=1; i<=5; i++)

{

    for(j=1; j<=5; j++)
   
     {

       if( i==1 || i==5 || j==3)

       printf("* ");        // star and space

       else

       printf("  ");        // double space

    }

   printf("\n");          //new line

}

return 0;

}

Output:


* * * * *
     *
     *
     *
* * * * *         

Practical demonstration in Pictorial form-


Program to print alphabet I in C Language without Graphics
Program to print alphabet I in C Language without Graphics

Output:-

Program to print alphabet I in C Language without Graphics Output
Program to print alphabet I in C Language without Graphics Output

⏪ Program to Print Alphabet H                                                               Program to Print Alphabet J⏩

No comments:

Post a Comment