144k views
1 vote
Z

y z
x y z
w x y z
v w x y z

using for nested for loop only, give the program of the above question. (I'll rate 5 if your answer is on point)​

User Bstampe
by
7.6k points

1 Answer

3 votes

Answer:

int main() {

char a,b;

for(a='z'; a>='v'; a--) {

for(b=a; b<='z'; b++)

printf("%c ", b);

printf("\\");

}

}

Step-by-step explanation:

Using literal characters to initialize char variables makes the program very readable i.m.o.

User Tjac
by
8.7k points