Time:06-07
CodePudding user response:
for loop can,
help me with my thumb up blink my answer for your reference
# include # define maxsize 8 Int main () {Int n=1, student [maxsize]; While (+ + n{Printf (" please enter the % d grades: \ n ", n + 1); The scanf (" % d ", & amp; Student [n]); } Printf (" student id \ t result \ n "); for(int i=0; i{Printf (" % d % d \ t \ n ", I + 1, student [I]);; } return 0; }//concern DMS solve simple problem free
Quote: refer to 7th floor yma16 response: # include # define maxsize 8 Int main () {Int n=1, student [maxsize]; While (+ + n{Printf (" please enter the % d grades: \ n ", n + 1); The scanf (" % d ", & amp; Student [n]); } Printf (" student id \ t result \ n "); for(int i=0; i{Printf (" % d % d \ t \ n ", I + 1, student [I]);; } return 0; }//concern DMS solve simple problem free Thank you very much, the n=1 to n=0, + + n to n++ please
Page link:https//www.codepudding.com/Backend/112804.html