is it possible to output like this using only one loop? if yes, how?
target output
here is my code but using one loop im not getting my target outputCode:ABCDE EDCBA
Code:#include <stdio.h> main() { int x, y; for(x='a', y='e'; x<='e'; x++, y--) { printf("%c\n%c", x, y); } getch(); }