2 Comments

  1. eman

    there is another solution

    public int powerOfnumber(int num,int power)
    {
    if(power==1)
    return num;
    else
    return num*powerOfnumber(num,power-1);

    }

    Reply

Leave a Reply