Register now or log in to join your professional community.
class trix
{
int act(int n)
{
int result;
if (n ==1)
return1;
result = act(n -1) * n;
return result;
}
}
class Output
{
static void main(String args[])
{
trix obj = new trix() ;
Console.WriteLine(obj.act(7)*(2));
}
}
I dont understand class output but this is number of power class
And output is n^ p
Here.................................................................................