C program to print the alphabets diamond pattern
kw.c
Output
kodingwindow@kw:~$ gcc kw.c
kodingwindow@kw:~$ ./a.out A ABC ABCDE ABCDEFG ABCDEFGHI ABCDEFGHIJK ABCDEFGHIJKLM ABCDEFGHIJKLMNO ABCDEFGHIJKLMNOPQ ABCDEFGHIJKLMNOPQRS ABCDEFGHIJKLMNOPQRSTU ABCDEFGHIJKLMNOPQRSTUVW ABCDEFGHIJKLMNOPQRSTUVWXY ABCDEFGHIJKLMNOPQRSTUVW ABCDEFGHIJKLMNOPQRSTU ABCDEFGHIJKLMNOPQRS ABCDEFGHIJKLMNOPQ ABCDEFGHIJKLMNO ABCDEFGHIJKLM ABCDEFGHIJK ABCDEFGHI ABCDEFG ABCDE ABC A kodingwindow@kw:~$
What Next?
C program to find the min and max of given numbers
C program to print alphabets using the ASCII values
C program to reverse a given number
Advertisement