上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 184 下一页
摘要: //题目:一个整数,它加上100后是一个完全平方数,再加上168又是一个完全平方数,请问该数是多少? //1.程序分析:在10万以内判断,先将该数加上100后再开方,再将该数加上268后再开方,如果开方后的结果满足如下条件,即是结果。请看具体分析: //2.程序源代码: #include "math 阅读全文
posted @ 2023-02-27 21:42 myrj 阅读(260) 评论(0) 推荐(0)
摘要: #include <stdio.h> main() { 【1】 ch[80]; int i; printf("请输入一个字符串:"); gets(【2】); for(i=0;ch[i]!= '【3】';i++) { if(ch[i]>='A'【4】ch[i]<='Z') ch[i]=ch[i]+32 阅读全文
posted @ 2023-02-27 09:38 myrj 阅读(253) 评论(0) 推荐(0)
摘要: #include <stdio.h> main() { int year,flag; printf("请输入年份:"); 【1】; 【2】 printf("年份超出范围。"); else { if(year%4==0) { 【3】 { if(year%400==0) flag=1; 【4】 flag 阅读全文
posted @ 2023-02-27 09:34 myrj 阅读(130) 评论(0) 推荐(0)
摘要: //题目:编程求输出所有符合以下特点4位数,这个数是否具有以下特点:这数本身是平方数,且其低2位和高2位所组成的2个2位数也是平方数。 //要求:使用程序中定义的变量 #include <stdio.h> #include <math.h> main(){ int qw,bw,sw,gw; // q 阅读全文
posted @ 2023-02-27 06:56 myrj 阅读(387) 评论(0) 推荐(0)
摘要: #include "stdio.h" //有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? 每行显示5个 main() { int i,j,k,count=0; for(i=1;i<5;i++) for(j=1;j<5;j++) for (k=1;k<5;k++) { i 阅读全文
posted @ 2023-02-27 06:17 myrj 阅读(95) 评论(0) 推荐(0)
摘要: #include <stdio.h> //任意输入两个整数,输出这两个数的最小公倍数 main() { int a,b,c,gys,gbs; scanf("%d%d",&a,&b) ; for(c=1;c<=a*b;c++) { if(c%a==0&& c%b==0) { gbs=c; break; 阅读全文
posted @ 2023-02-26 19:59 myrj 阅读(220) 评论(0) 推荐(0)
摘要: //原数据状态 des // Contains data from D:\Stata17\ado\base/a/auto.dta // Observations: 74 1978 automobile data // Variables: 12 13 Apr 2020 17:45 // (_dta 阅读全文
posted @ 2023-02-26 16:16 myrj 阅读(223) 评论(0) 推荐(0)
摘要: //检测所有能通过ssc安装的以d开头的命令列表 ssc describe d // // http://fmwww.bc.edu/repec/bocode/d/ // (no title) // // // PACKAGES you could -net describe-: // d3netwo 阅读全文
posted @ 2023-02-26 11:10 myrj 阅读(279) 评论(0) 推荐(0)
摘要: sysuse auto, clear // (1978 automobile data) des // // Contains data from D:\Stata17\ado\base/a/auto.dta // Observations: 74 1978 automobile data // V 阅读全文
posted @ 2023-02-26 11:04 myrj 阅读(791) 评论(0) 推荐(0)
摘要: /*程序功能: 输入一个不大于4位正整数,判断它是几位数,然后输出各位之积。*/ #include <stdio.h> main() { int a,【1】,【2】,b; scanf("%d",&a); 【3】=a; if(【4】) { do{ wei++; cj=【5】; a=【6】; }whil 阅读全文
posted @ 2023-02-26 07:53 myrj 阅读(181) 评论(0) 推荐(0)
上一页 1 ··· 54 55 56 57 58 59 60 61 62 ··· 184 下一页