Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void)
- {
- const int Count = 26;
- for ( int i=0; i<Count; i++ )
- {
- int j;
- for ( j=0; j<Count-(i+1); j++ )
- printf (" ");
- for ( j='A'; j<='A'+i; j++ )
- printf ( "%c", j );
- for ( j='A'+i-1; j>='A'; j-- )
- printf ( "%c", j );
- printf ("\n");
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment