Hi friends
i had a assignment to make this c++ program
output
f e d c b a
e d c b a
d c b a
c b a
b a
a
i have created this program using this code
# include <iostream.h>
# include <conio.h>
void main(void)
{
char x[6];
int m=0;
int n=70;
int z=0;
int p=32;
int b=1 ;
while(m<6)
{
x[m]=n;
n=n-1;
m++;
}
while(z<6)
{
int f=0;
while(f<6)
{
cout<<x[f];
x[z]=p;
cout<<x[z];
f++;
}
cout<<endl;
z++;
}
}
but its output is
f e d c b a
d c b a
c b a
b a
a
if somebody help me than i will be very thankful to you
Regards