Home > Back-end >  The small white for help
The small white for help

Time:11-19

#include

Long a_b (long int x, long int y);//define a power function b
Long jie_cheng (long int z);//define the factorial function

Int main ()
{//1
Long int a, b, c, d, e, f, g, h, I, j, k;

Printf (" please enter the first number of the base number: \ n ");
The scanf (" % ld ", & amp; A);

Printf (" please enter the first number index: \ n ");
The scanf (" % ld ", & amp; b);

Printf (" please enter the second number base: \ n ");
The scanf (" % ld ", & amp; C);

Printf (" please enter the second number index: \ n ");
The scanf (" % ld ", & amp; D);

E=a_b (a, b);
F=a_b (c, d);
G=jie_cheng (I);
H=jie_cheng (j);
K=g + h;

Printf (" % % ld power of ld is: % ld \ n % ld! Ld is % \ n ", a, b, e, e, g);
Printf (" % % ld power of ld is: % ld \ n % ld! Ld is % \ n ", c, d, f, f, h);
Printf (" % ld! Ld + %!=% ld ", e, f, k);
}//1

Long a_b (long int x, long int y)
{//2
int a=1 ;
For (y; Y & gt; 2; Y -)
{//3
A *=x;
}//3
return(a);
}//2

Long jie_cheng (long int z)
{//4
Long int t;
A_b (x, y);//this place to write to come.
T=a_b (x, y);
For (t; T & gt; 1; T -)
{//5
T=t + (t - 1);
}//5
Return (t);
}//4
  • Related