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

 

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

Given four positive integers, return a count of how many of those integers are even.


countEvens(3, 4, 5, 7) → 1
countEvens(2, 4, 6, 6) → 4
countEvens(13, 7, 11, 1) → 0

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

int countEvens(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