id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

norm.krumpe@muohio.edu > countPositives
prev  |  next  |  chance

Given 4 integers, how many are positive?


countPositives(4, 1, 0, -6) → 2
countPositives(-10, -11, 2, -3) → 1
countPositives(1, 3, 4, 2) → 4

...Save, Compile, Run (ctrl-enter)

int countPositives(int a, int b, int c, int d) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 100

Copyright Nick Parlante 2017 - privacy