Home > Back-end >  C language problem, try so hard, it is very simple
C language problem, try so hard, it is very simple

Time:10-10

Write the following procedure to run as a result,
The main ()
{the static char a={' * ', '*' and '*', '*', '*'};
Int I, j, k;
for(i=0; i<5; I++)
{printf (" \ n ");
for(j=0; jFor (k=0; k<5; K++) printf (" % c ", a);
}
}

CodePudding user response:

https://c.runoob.com/compile/11

CodePudding user response:

Why is 2020 years, and so old-fashioned C code

According to your writing, it should be an array, a but with below (print), and according to the characters, so
1. Make a change to a []
2. Printing when using % s, or make a change to a [k]

CodePudding user response:

This is a test, is a Java me, see the don't understand the

CodePudding user response:

Find a compiler can test the results the ~
  • Related