# include <iostream.h>
# include <conio.h>
int b=1 ;
but its output is
f e d c b a
d c b a
c b a
if somebody help me than i will be very thankful to you
7 Months Ago
Related Article:map and for loops problem
is a solved C++ discussion thread by megatron21 that has 2 replies, was last updated 1 year ago and has been tagged with the keywords: c++, forloop, iterator, map.
You don't need arrays or while loops. Just use three simple for loops. The first counts the number of rows, which is 6. The second displays space(s) to move the cursor on the screen, and the third displays the letters in reverse order that they appear in the alphabet.
loop counts from 0 to 6 // you need 6 rows of data on the screen
loop counts from 0 until it reaches the value of first counter
display a space
loop counts from 'F' - value of first counter, down until it reaches 'A'
display char value of the counter