deepthiji
asked on
Pls help to solve this using loops.
hi experts,
i am trying to do this for hours now, still could not figure out how to do this. Please help me, I am new in C.
thanks in advance for the help
I want to write a program to get an output like this: 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
int i,j;
i='G';
clrscr();
while(i>='A') I wrote this and able to manage the first part , that is ABCDEFG
{ ABCDEF
j='A'; ABCDE
while(j<=i) ABCD
ABC{ AB
A
printf ("%c",j);
j++;
}
printf ("\n");
i--;
}
getch();
}
but i could not write code to get the whole ouput, please give me some hints to go furthur ,
thnaks,
Deep.
i am trying to do this for hours now, still could not figure out how to do this. Please help me, I am new in C.
thanks in advance for the help
I want to write a program to get an output like this: 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
int i,j;
i='G';
clrscr();
while(i>='A') I wrote this and able to manage the first part , that is ABCDEFG
{ ABCDEF
j='A'; ABCDE
while(j<=i) ABCD
ABC{ AB
A
printf ("%c",j);
j++;
}
printf ("\n");
i--;
}
getch();
}
but i could not write code to get the whole ouput, please give me some hints to go furthur ,
thnaks,
Deep.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks a lot for the help. i understood now.
Thanks once again.
ASKER
so please make sure, use only loops nothing else.
thanks