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

学习 时间:2026-04-04 21:39:58 阅读:2771
Given a positive integer N,you should output the most right digit of N^N.

最佳回答

落寞的皮带

活泼的菠萝

2026-04-04 21:39:58

#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-04-04 21:39:58

    #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