用C语言咋写
查看原帖
用C语言咋写
836049
ReeseA12楼主2022/10/29 14:58

请问有没有大佬指正一下我这个连小白都不如的菜鸟。

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
    int a,b,c;
    scanf("%d %d",&a,&b);
    c=pow(a,b);
    if(c<pow(10,9))
        printf("%d",c);
        else
        printf("-1");
    system("pause");
    return 0;    
}

我能报答你的是关注你和祝你AC。

谢谢!

2022/10/29 14:58
加载中...