Given a positive integer N,you should output the most right

问题描述:

Given a positive integer N,you should output the most right digit of N^N.
1个回答 分类:综合 2014-09-28

问题解答:

我来补答
#include
#include
void main()
{
int n;
double xx=0.0;
clrscr();
scanf("%d",&n);
xx=pow(n,n);
printf("%d",(int)xx % 10);
getch();
}\x1a
 
 
展开全文阅读
剩余:2000
上一页:解题方法 技巧
下一页:过程3