recent

c program to print alphabet pattern

write a c program to print alphabet pattern
t
ss
rrr
qqqq
ppppp

#include <stdio.h>

int main()
{
    int j,k;
    for(j=5;j>=1;j--)
    {
        for(k=5;k>=j;k--)
        {
            printf("%c",'p'-1 + i);
        }
        printf("\n");
    }
Powered by Blogger.