// Program to print alphabet A in C with C Bhasha Gyan
#include<stdio.h>
int main()
{
int i, j, k;
for (i=1; i<=5; i++)
{
for(k=i; k<=5; k++)
printf (" ");
for(j=1; j<=i; j++)
{
if( i>3 && (j>1 && j<i)) // for middle star
printf(" "); // allow double space
else
printf("* "); // allow star and space
}
printf("\n");
}
return 0;
}
Output:
*
* *
* * *
* *
* *
Practical demonstration in Pictorial form-
Output:
Program to print alphabet A in C Language without Graphics Output |
No comments:
Post a Comment