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

学习 时间:2026-05-30 16:13:08 阅读:8134
Given a positive integer N,you should output the most right digit of N^N.

最佳回答

丰富的荷花

粗暴的咖啡

2026-05-30 16:13:08

#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-05-30 16:13:08

    #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