摘要: 1 #include <stdio.h> 2 int main() 3 { 4 float a, b, c; 5 // 输入三边边长 6 scanf_s("%f%f%f", &a, &b, &c); 7 // 判断能否构成三角形 8 // 补足括号里的逻辑表达式 9 if (a+b>c&&a+c>b 阅读全文
posted @ 2023-10-29 19:21 铭懿 阅读(17) 评论(0) 推荐(0)
摘要: 1 #include<stdio.h> 2 int main() 3 { 4 printf(" O \n"); 5 printf("<H>\n"); 6 printf("I I\n"); 7 return 0; 8 } 阅读全文
posted @ 2023-10-29 19:18 铭懿 阅读(16) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #define N 5 5 #define N1 374 6 #define N2 465 7 int main() 8 { 9 int number; 10 int i 阅读全文
posted @ 2023-10-25 19:52 铭懿 阅读(11) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main(){ char n; while (scanf_s("%c", &n) != EOF) { getchar(); if (n == 'y') { printf("wait a minute\n"); } else if (n == 'g') { 阅读全文
posted @ 2023-10-25 19:49 铭懿 阅读(16) 评论(0) 推荐(0)