标题:为什么没显示算出来的答案啊?
取消只看楼主
木下瞳
Rank: 1
等 级:新手上路
帖 子:37
专家分:6
注 册:2017-9-24
结帖率:88.89%
已结贴  问题点数:20 回复次数:1 
为什么没显示算出来的答案啊?
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main() {
    int i, base, power;
    printf("please input the base:\n");
    scanf_s("%d", &base);
    printf("please input the power:\n");
    scanf_s("%d", &power);
    for (i = 0; i < power; i++)
        printf("%d^%d is %d\n", base, power + i, pow(base, power + i));
    system("pause");
}
搜索更多相关主题的帖子: 显示 include base power printf 
2018-03-12 23:02
木下瞳
Rank: 1
等 级:新手上路
帖 子:37
专家分:6
注 册:2017-9-24
得分:0 
谢谢大家
2018-03-13 16:12



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-485208-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 2.013640 second(s), 9 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved