Ask Question
5 September, 06:57

Give the algorithm and flowchart for following C code:

#include

int main ()

{

int i, j, k=0, space=1;

for (i=7; i>=1; i--)

{

for (j=1; j<=i; j++)

{

printf ("%c", j+64);

}

if (i!=7)

{

for (k=1; k<=space; k++)

{

printf (" ");

}

space+=2;

}

for (j=i; j>=1; j--)

{

if (j!=7)

printf ("%c", j+64);

}

printf ("/n");

}

printf ("/n");

}

+3
Answers (1)
  1. 5 September, 10:17
    0
    It's invalid code. The include statement is incomplete
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Give the algorithm and flowchart for following C code: #include int main () { int i, j, k=0, space=1; for (i=7; i>=1; i--) { for (j=1; j ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers