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

学习 时间:2026-08-13 20:09:42 阅读:2365
Given a positive integer N,you should output the most right digit of N^N.

最佳回答

喜悦的大象

壮观的蜗牛

2026-08-13 20:09:42

#include#includevoid main(){int n;double xx=0。0;clrscr();scanf("%d",&n);xx=pow(n,n);printf("%d",(int)xx % 10);getch();}\x1a

最新回答共有2条回答

  • 威武的往事
    回复
    2026-08-13 20:09:42

    #include#includevoid main(){int n;double xx=0。0;clrscr();scanf("%d",&n);xx=pow(n,n);printf("%d",(int)xx % 10);getch();}\x1a

上一篇 life,that one of the most reluctant,always hidde

下一篇 求不定积分 ∫dx/√5-2x-x^2