Home > Back-end >  Fill in the blanks with the how do I always run out
Fill in the blanks with the how do I always run out

Time:01-06

The number of statistics of the 10 integers positive

CodePudding user response:

(1)=0
(2) count++
(3) the count

CodePudding user response:

reference 1/f, zhao teacher reply:
(1)=0
(2) count++
(3) the count

That's not tried

CodePudding user response:

Upstairs positive solution,,,

CodePudding user response:

refer to the second floor m0_53759618 response:
Quote: reference, 1/f, zhao teacher reply:
(1)=0
(2) count++
(3) the count

Is not this tried

Stare big eyes, just by the way,,

CodePudding user response:

reference 1/f, zhao teacher reply:
(1)=0
(2) count++
(3) the count

I would have tried to run out

CodePudding user 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,...

CodePudding user response:

refer to 6th 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... Programming is not generally low level

CodePudding user response:

refer to 7th floor stand summer response:
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

I began to learn...
  • Related