Ask Question
2 March, 11:25

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");

}

+4
Answers (1)
  1. 2 March, 11:45
    0
    It's invalid code. The include statement is incomplete
Know the Answer?
Not Sure About the Answer?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers