The â??powerâ?? function currently does not exist in IJVM. For example, if two numbers 2 and 3
are on the stack, the power function would compute 2 power 3, i.e. 23 that should give 8 as
the result. Assume two positive numbers (say, a and b) are provided on the stack (with a
being the first value and b being the value on top). Write an IJVM code segment that will
calculate the power of the two numbers (ab) and put the result back on the stack. You are
allowed to use existing IJVM instructions only. Include appropriate comments to explain your programm output
Related Tutorials/Questions & Answers:
IJVM in
IJVM. For example, if two numbers 2 and 3
are on the stack, the power function... value and b being the value on top). Write an
IJVM code segment... are
allowed to use existing
IJVM instructions only. Include appropriate comments
IJVM in
IJVM. For example, if two numbers 2 and 3
are on the stack, the power function... value and b being the value on top). Write an
IJVM code segment... are
allowed to use existing
IJVM instructions only. Include appropriate comments
Advertisements
IJVMIJVM using
IJVM..can anybody help me in this question
User should be prompted to enter two non-negative numbers (say, a and b where a >0 and
b > 0) line by line and then press the enter key.
Your program should