C programme to print English Alphabets special pattern

 a

c b

d e f

j i h g

k l m n o







#include <stdio.h>


int main()

{

    int row,col;

    int num=96 ,mum;

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

        for (col=1;col<=row;col++){

            if(row%2==0){

                num=num+row;

                mum=num;

                for(col=1;col<=row;col++){

                    printf("%c ",mum);

                    mum--;

                    }

                }

                else {

                    num++;

            printf("%c ",num);

           

                    

                     }

                                } 

        printf("\n");

    }


    return 0;

}


Comments

Popular posts from this blog

C Programme to find Area Of Rectangle

C programme to reverse the number