摘要: Windows系统,C语言个人所得税计算系统。 1 #include <stdio.h> 2 3 #include <windows.h> 4 5 int main() 6 7 { const int ZBB=5000; 8 9 const float Ctaxrate0=0; 10 11 cons 阅读全文
posted @ 2021-06-01 00:21 考研鱼 阅读(363) 评论(0) 推荐(0)
摘要: 在Windows系统上,用C语言编写闹钟程序。 一、用do...while语句实现循环响铃 1 /*此程序用do...while语句实现循环响铃*/ 2 3 #include <stdio.h> 4 5 #include <windows.h> 6 7 #include <winbase.h> 8 阅读全文
posted @ 2021-05-31 23:19 考研鱼 阅读(593) 评论(0) 推荐(0)
摘要: 水仙花数是指一个 n 位数(n≥3 ),它的每个位上的数字的 n 次幂之和等于它本身。 水仙花数,也被称为超完全数字不变数、自恋数、自幂数、阿姆斯壮数或阿姆斯特朗数。 水仙花数只是自幂数的一种,严格来说3位数的3次幂数才称为水仙花数。 PS:其他位数的自幂数名字 1、一位自幂数:独身数 2、两位自幂 阅读全文
posted @ 2021-05-30 23:05 考研鱼 阅读(3005) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 int main() 3 { 4 float a,b,s; 5 a=1.0/2; 6 b=1.0/3; 7 s=a+b; 8 printf("s=%f\n",s ); 9 return 0; 10 } 11 12 13 14 15 /*计算两位数整数各位 阅读全文
posted @ 2021-05-30 04:23 考研鱼 阅读(5658) 评论(0) 推荐(0)