c语言考试,求答案,急!!急!!答:c语言考试,求答案,急!!急!! }五、程序设计题(本大题共2小题,每小题12分,共24分)36.设有-11,-9,0,3,5,6,8,12,15,21十个数,请编程从键盘上输入这十个数,并计算能够被3整除的数的平均值。37.编一个求素数的函... }五、程序设计题(本大题共2小题,每小题12分,共24分)36.设有-11,-9,...
c语言题目,求1.2.3题答案,多谢大佬!答:mygcd(a,b));printf("The LCM if %d\n",mylcm(a,b));return 0;}运行样例:(2)include "stdio.h"#include "math.h"int main(int argv,char *argc[]){double a,b,c,t,f;printf("Input 3 number(R:)...\n");scanf("%lf%lf%lf",&a,&b,&c);t = (t=b*b-4*a*c)>...
一到简单的C语言题目答:include <stdio.h> define pi 3.14 void lab1(double r,double *s,double *v);void lab2(double r,double *s,double *v);void lab3(double r,double h,double *s,double *v);int main(){ int k;double r,h,l,s,v;printf("请输入您所要求的图形名称,输入1是求球体的体积和表...
题目二,C语言题,我是初学者,程序要简单易懂。答:return i;}int main(){ if(strcmp2(str1,str2) //strcmp2()是前文的字符串比较函数,str1和str2分别为字符串1和字符串2 { strcat2(str1,str2); printf("%s,%d",str1,strlen2(str1)); }else{ strcat2(str2,str1); printf("%s,%d",str2,strlen2(str2));...