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

 

jebbert@volusia.k12.fl.us > practiceQuiz2023_09_05_APP1SLHL_add
prev  |  next  |  chance

Write a method that returns the sum of the input parameters 'num1' and 'num2'. For example, if 'num1' is 17 and 'num2' is 3, you would return 20 because that is the sum of 17 and 3. Look at the test data for more examples.


practiceQuiz2023_09_05_APP1SLHL_add(40, 2) → 42
practiceQuiz2023_09_05_APP1SLHL_add(5, 6) → 11
practiceQuiz2023_09_05_APP1SLHL_add(-3, 3) → 0

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

public int practiceQuiz2023_09_05_APP1SLHL_add(int num1, int num2) { }

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: 200

Copyright Nick Parlante 2017 - privacy