20CYS181 - Periodicals 1: Alphabet Hourglass Pattern


Submit solution

Points: 15
Time limit: 0.128s
Memory limit: 3M

Author:
Problem type
Allowed languages
C

Problem Definition

Write a C Program to print the below alphabet hourglass pattern.

 D E F G H I J K L 
   D E F G H I J 
     D E F G H 
       D E F 
         D 
       D E F 
     D E F G H 
   D E F G H I J 
 D E F G H I J K L

Test Data

Sample Input 1

10

Sample Output 1
 D E F G H I J K L M N O P Q R S T U V 
   D E F G H I J K L M N O P Q R S T 
     D E F G H I J K L M N O P Q R 
       D E F G H I J K L M N O P 
         D E F G H I J K L M N 
           D E F G H I J K L 
             D E F G H I J 
               D E F G H 
                 D E F 
                   D 
                 D E F 
               D E F G H 
             D E F G H I J 
           D E F G H I J K L 
         D E F G H I J K L M N 
       D E F G H I J K L M N O P 
     D E F G H I J K L M N O P Q R 
   D E F G H I J K L M N O P Q R S T 
 D E F G H I J K L M N O P Q R S T U V

Comments

There are no comments at the moment.