pattern program 12 (C language)
Program - 12
/* C program to print character pyramid as given below: A B C D E F G H I J K L M N O */ #include <stdio.h> int main() { int i,j; char ch='A'; for(i=1;i<=5;i++) { for(j=1;j<=i;j++) { printf("%c ",ch++); } printf("\n"); } return 0; }
Output
A B C D E F G H I J K L M N O
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Program - 12
Output
need an explanation for this answer? contact us directly to get an explanation for this answer