摘要:
//实验1 不能,因为函数只能返回一个值 //实验2 //实验2 //利用局部static变量计算阶乘 #include<stdio.h> long long fac(int n); //函数声明 int main(){ int i, n; printf("Enter n:"); scanf("%d 阅读全文
摘要:
//ex1.cpp //ex1.cpp #include<stdio.h> int main(){ int a=5,b=7,c=100,d,e,f; d = a/b*c; e = a*c/b; f = c/b*a; printf("d=%d,e=%d,f=%d\n",d,e,f); return 0 阅读全文