Computer Science, asked by dharmendeaxarora, 11 months ago

WAP to write the following pattern in (for next loop);
1).
EEEE
DDD
CC
B

Please help!!! Tomorrow is my exam

Answers

Answered by Bakernancy444
0

Explanation:

main logic is

for(int i=1;i<5;i++)

for (int j =1;j<5;j++)

if (i==1)

printf("e");

else if (i==2 && j<4)

printf("d");

else if (i==3 && j<3)

printf("c");

else if (i==4 && j==1)

printf("b");

Similar questions