分类：电脑/网络-软件
问题：C语言练习题求解求1^n+3^n+5^n+7^n+……+m^n( 
求1^n+3^n+5^n+7^n+……+m^n (2n-1的n次幂相加) m,n的值从输入。 
回答：#include<stdio.h>
void main()
{
    int sum = 0, m;
    printf("键盘输入n的值:");
    scanf("%d",&n);
          for (int i = 1; i < 2 * n; i = i + 2)
            {
                m = i;
                for (int j = 1; j <n; j++)
                    m = m * i;
                sum += m;
            }
printf("%d",sum);
}