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

 

gaurav.gupta@mq.edu.au variables > product2
prev  |  next  |  chance

Define a function that when passed two integers, returns the product of the two.


product2(20, -4) → -80
product2(0, 1) → 0
product2(50, 50) → 2500

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

int product2(int a, int b) { }

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: 1 Post-solution available

Copyright Nick Parlante 2017 - privacy