Mint1209
Mint1209
全部文章
分类
题解(21)
归档
标签
去牛客网
登录
/
注册
Mint1209的博客
全部文章
(共21篇)
题解 | #简单计算器#
#include <stdio.h> int main() { double x = 0; double y = 0; char ch = '0'; while (scanf("%lf%c%lf",&x,&ch,&y) != EOF...
C
2021-10-28
0
360
获得月份天数
#include <stdio.h> int main() { int year = 0; int month = 0; int num1[7] = { 1,3,5,7,8,10,12 }; int num2[4] = { 4,6,9,11 }; ...
C
2021-10-28
0
338
题解 | #争夺前五名#
#include <stdio.h> #include <math.h> int main() { int n = 0; int grade[40] = {0}; scanf("%d",&n); int i = 0; int j...
C
2021-10-24
2
467
题解 | #计算三角形的周长和面积#
#include <stdio.h> #include <math.h> int main() { //运用 海伦公式 和开平方函数 while (1) { float a = 0; float b = 0; float...
C
2021-10-23
0
292
题解 | #计算体重指数#
#include <stdio.h> #include <math.h> int main() { float height = 0; float weight = 0; scanf("%f %f",&weight,&height); float he...
C
2021-10-23
0
494
题解 | #总成绩和平均分计算#
#include <stdio.h> #include <math.h> int main() { float a = 0; float b = 0; float c = 0; scanf("%f %f %f",&a,&b,&a...
C
2021-10-23
0
367
题解 | #浮点数的个位数字#
#include <stdio.h> int main() { float num1 = 0; int num2 = 0; scanf("%f",&num1 ); num2 = (int)num1;//强制类型转换 num2 %= 10; ...
C
2021-10-23
0
326
题解 | #ASCII码#
#include <stdio.h> int main () { int a [12] = {73, 32, 99, 97, 110, 32, 100, 111, 32, 105, 116 , 33};// 建立数组 int i = 0; while (i<...
C
2021-10-09
1
394
题解 | #成绩输入输出#
# include <stdio.h> int main () { /*int score1 = 0; int score1 = 0; scanf();*/ int a,b,c;//直接整形定义三个变量 scanf ("%d %d %d",&...
C
2021-10-06
0
310
题解 | #printf的返回值#
# include<stdio.h> int main () { int a = printf("Hello world!"); printf("\n%d", a); return 0; }
C
2021-10-06
0
319
首页
上一页
1
2
3
下一页
末页