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

C语言编程题

#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

1. #include void main(){int i,n,s=0;scanf("%d",&n);for(i=0;i

#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(void) {int y;if(scanf("%d",&y)==1){if(y

#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 int len(int n) { if(n/1000!=0) return 4; else if(n/100!=0) return 3; else if(n/10!=0) return 2; else return 1; } void main() { int n,t=1,m=0,i,j,k=0,max=0,sum=0,l=0,s[10000]={0}; scanf("%d",&n); fo...

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

要输入的分数太多,我懒得手数,用2位随机数代替手输入,输入函数我单独写了,你需要调用就行了,详细看备注。 #include#include#include#define stuNum 15//学生人数#define scNum 7//模块数typedef struct stu//定义学生数据结构{ int sid;//...

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