wfyj.net
当前位置:首页 >> C语言编程题 >>

C语言编程题

#includeint main(){ int i,j,sum=0; for(i=1,j=2;i

#include int main(){float A,B,compete,standard;printf("Input percent of A and B:");scanf("%f%f",&A,&B);compete=A*10+B*6;standard=A*8+B*10;printf("compete = %.4f\nstandard = %.4f\n",compete,standard);if(compete

这么多啊,现在还需要吗

#include int main() { float x; char t; while(1){ printf("input type and distance:\n"); scanf(" %c %f",&t,&x); fflush(stdin); if (t=='C'){ printf("%g\n",0.50*x); } else if (t=='T'){ printf("%g\n",1.00 *x); } else if (t=='B'){ pr...

#include void main() { int max,min,sum,i,score[10]; printf("输入数据:"); for(i=0;i

#include int main(){ int m,n,r; scanf("%d%d%d",&m,&n,&r); printf("%d\n", m+n+r); return 0;}

#include int main(void) {int y;if(scanf("%d",&y)==1){if(y

#include float a_stu[4],a_cour[3];//定义两个全局数组,用来表示学生平均成绩和各科平均成绩 int a[4][3]={78,78,99,90,89,96,77,91,90,92,79,89}; int main() { void aver_stu(void); void aver_cour(void); void fangcha(void); aver_stu();...

#include "stdio.h"int main(){ float ma,tr,tr_result,ma_result; printf("Please enter your price number:"); scanf("%f",&ma); switch((int)ma/1000) { case(0):tr=0;break; case(1):tr=0.05;break; case(2):case(3):tr=0.08;break; default...

# include # include #define N 20 //字符数组大小 char trans(int x) { if(x

网站首页 | 网站地图
All rights reserved Powered by www.wfyj.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com