Program to print particular pattern
#include<stdio.h> main() { int i,j,n; char ch='a'; printf("eneter value for n\n"); scanf("%d",&n); for(i=1;i<=n;i++) { for(j=1;j<=i;j++) { printf("%5c",ch++); } printf("\n"); } }OutPut:
madan@madan-Lenovo-G570:~/madan$ cc ex27.c madan@madan-Lenovo-G570:~/madan$ ./a.out eneter value for n 5 a b c d e f g h i j k l m n o