Time:01-06
CodePudding user response:
(1)=0 (2) count++ (3) the count
Quote: reference, 1/f, zhao teacher reply: (1)=0 (2) count++ (3) the count Is not this tried
# include & lt; stdio.h> Int PositiveNum (int a [], int n) {Int I, count=0; for (i=0; i{If (a [I] & gt; 0) count++; }Return the count. }Int main () {,0,2,3,4 int [10] b={1, 1, 2, 3, 4, 0}; Printf (" % d \ n ", PositiveNum (b, 10));//4 return 0; }
# include & lt; stdio.h> Int PositiveNum (int a [], int n) {Int I, count=0; for (i=0; i{If (a [I] & gt; 0) count++; }Return the count. }Int main () {,0,2,3,4 int [10] b={1, 1, 2, 3, 4, 0}; Printf (" % d \ n ", PositiveNum (b, 10));//4 return 0; } Among big dig a hole, the set of neck, not yet; Also have to help turn, help to chew, swallow, help digestion, help, help,...
Quote: refer to the sixth floor 4 teacher zhao response: # include & lt; stdio.h> Int PositiveNum (int a [], int n) {Int I, count=0; for (i=0; i{If (a [I] & gt; 0) count++; }Return the count. }Int main () {,0,2,3,4 int [10] b={1, 1, 2, 3, 4, 0}; Printf (" % d \ n ", PositiveNum (b, 10));//4 return 0; } Among big dig a hole, the set of neck, not yet; Also have to help turn, help to chew, swallow, help digestion, help, help,... Can be too C, zhao four teachers say the answer, but the questioner, gave the answers are not useful, aye... Level of programming is not generally low
Page link:https//www.codepudding.com/Backend/97548.html