Alphabet Programs in C Programming Language || C Programs

 



                                    We Post a Program that help you to learn Programming Language and help you inprove you Programmng skill. 


            This is a Alphabet Programs In this you see a Pattern of all Alphabet we give you a all source code and explanation about our code of this programs here. 


Source Code  :-



/*
        ##################################################################################
        ##################################################################################
        ##                                                                              ##
        ##                   Program Name :- A Pattern Program                          ##      
        ##                   Created By   :- Vighu                                      ##
        ##                                                                              ##
        ##################################################################################
        ##################################################################################

*/

#include<stdio.h>

int main(int argcchar const *argv[])
{
    int n = 5;
    int x = n;
    int ij;

    for (i=1i<=ni++)
    {
        for (j=1j<2*nj++)
        {
            if (j==x||j==n+i-1)
            {
                printf("*");
            }
            else if(j>=x&& j<=n+i-1 && i==n/2+1)
            {
                printf("*");
            }
            else
            {
                printf(" "); // whitespace
            }
        }
        printf("\n");
        x--;
    }
    return 0;
}

Comments

Popular Posts