c语言编写一个程序,非常简单答:(1)include "stdio.h"#include "math.h"int main(int argc,char *argv[]){float m,r;int n;printf("Please input, the number of the principal and interest rates in turn.\n");if(scanf("%f,%d,%f",&m,&n,&r)!=3 || m<0 || n<0 || r<0){printf("Input error, exit...
编写一个c语言程序。答:include <stdio.h>#define MAX_STUDENT 5int main(void) {int n[MAX_STUDENT] = {12345, 12346, 12347, 12348, 12349};int a[MAX_STUDENT] = {60, 70, 80, 90, 100};int b[MAX_STUDENT] = {65, 75, 85, 95, 100};int i, j, temp;float math_avg = 0.0f;float phy_avg ...