YarionNeethugher YarionNeethugher
  • 19-03-2017
  • Computers and Technology
contestada

Write a recursive method int power(int i, int j which determines teh result of i^j where j>=0

Respuesta :

rsmith6559
rsmith6559 rsmith6559
  • 23-03-2017
int power( int i, int j )
{
   if( j == 0 )  // base case
       return( 0 );
   return( i * power( i, j -1 ) );
}
Answer Link

Otras preguntas

Geometry hw help please.
The question is written on the image
Someone plz help me :(
The production of hormones and absorption of many vitamins are two important roles of which nutrient
someone help me :''((((((
underage drinking prevention project. One school is used as an experimental group and the other a control group. This is a(n)
The primary purpose of antitrust legislation is to:
A speech explaining how Moose Drool Ale is produced would probably use which pattern of organization
Am not dead Begin:death​
How many inches are in 2 5/ 6 yards