PRINTING THE ALPHABET - G IN C LANGUAGE
#include<stdio.h>
#include<conio.h>
//G
int main()
{
int i,j,l=9;
for(i=1;i<=l;i++)
{
for(j=1;j<=l;j++)
{
(i==1||j==1||i==9||i>=5&&j==9||i==5&&j>5||j==5&&i>=5&&i<7)?printf("*"):printf(" ");
}
printf("\n");
}
}
Comments
Post a Comment