C Program for pyramid

What will be the code in c to get the following output?
A B C D E F G F E D C B A
A B C D E F F E D C B A
A B C D E E D C B A
A B C D D C B A
A B C C B A
A B B A
A A

Questions by vrijesh28

Showing Answers 1 - 9 of 9 Answers

jintojos

  • May 23rd, 2008
 

Code
  1. #include<conio.h>

  2.   #include<stdio.h>

  3.   #include<string.h>

  4. "ABCDEFG"" %c"" %c""n");

  5.                 length--;

  6.         }

  7.      getch();

  8.    }

  9.  

  Was this answer useful?  Yes

GNANAPRAKASH.S

  • Aug 9th, 2011
 

Code
  1. #include<stdio.h>

  2. #include<conio.h>

  3. "%d""Enter the number of lines upto alpahbets:""%c""%c""

  4.    ");

  5.     }

  6.     getch();

  7. }

  8.  

  Was this answer useful?  Yes

Anil

  • Oct 7th, 2011
 

Code
  1. #include<stdio.h>

  2. #include<conoio.h>

  3. 'A', 'B', 'C', 'D', 'E', 'F', 'G'"

  4.    ");

  5.     }

  6.     getch();

  7. }

  8.  



  Was this answer useful?  Yes

Gaurav Bhadauria

  • Oct 13th, 2011
 

Code
  1. span style="color: #ff0000;">'A', 'B', 'C', 'D', 'E', 'F', 'G'"%c ""%c ""n");

  2. }

  3.  

  Was this answer useful?  Yes

Jimmy Jack

  • Apr 25th, 2012
 

Code
  1. #include <iostream>

  2. #include <fstream>

  3. " "" "

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions