摘要: #include<stdio.h> int isUpTriangle(int myArray[][10],int n)//判断行标大于列标的所有元素是不是都是0,矩阵必须输入列 { int i,j; for(i=0;i<n;i++) { //每一行中行标大于列标的所有元素进行判断 for(j=0;j 阅读全文
posted @ 2020-03-31 09:45 金桔绒绒 阅读(1590) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<string.h> void wordCounter(char sentence[]) { char newSentence[1000]=" "; int counter=0; int i=0; strcat(newSentence,senten 阅读全文
posted @ 2020-03-31 09:43 金桔绒绒 阅读(684) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<string.h> int main() { char strResource[80],ch,t; char strConserve[80]; int i,flag,j; int count=0,length=0; ch=getchar(); f 阅读全文
posted @ 2020-03-31 09:41 金桔绒绒 阅读(1078) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main() { int i,n,s; int max=0,min=0;//初始化max和min int a[10]; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d",&a[i]); } for(i=1;i<n; 阅读全文
posted @ 2020-03-31 09:39 金桔绒绒 阅读(4694) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main() { int a[6][6]; int b[6]={0}; int i,m,n,j; scanf("%d %d",&m,&n); for(i=0;i<m;i++)//m行 { for(j=0;j<n;j++)//n列 { scanf("%d", 阅读全文
posted @ 2020-03-31 09:38 金桔绒绒 阅读(1868) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<string.h> void search(char strSource[],char c)//查找这样的字符和输出功能 { int i=0; int indexPos=-1;//记录位置,-1代表不是正常位置,找的时候如果找到了正常位置就变更为 阅读全文
posted @ 2020-03-31 09:37 金桔绒绒 阅读(1363) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main() { int m,i,n; int count=0; scanf("%d",&n); for(m=n-1;m>2;m--) { for(i=2;i<=m;i++) if(m%i==0)//筛选出素数 break; if(i>=m && m!=1 阅读全文
posted @ 2020-03-11 23:31 金桔绒绒 阅读(2592) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main() { int n,f; int wf,ef,yf; scanf("%d",&n); for(wf=1;wf<=50;wf++)//五分从小到大,所以在最外层 { for(ef=1;ef<=75;ef++) { for(yf=1;yf<=150; 阅读全文
posted @ 2020-03-11 23:30 金桔绒绒 阅读(699) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<math.h> int main() { int n; int x,y; int count=0; scanf("%d",&n); y=2; x=1; for(x=1;x<100;x++) { for(y=2;y<100;y++) { if(x* 阅读全文
posted @ 2020-03-11 23:29 金桔绒绒 阅读(750) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<math.h> int main() { int num,i;//先要知道位数 int t=0; long int n,f; scanf("%ld",&n); f=n; if(n==0) { printf("0 ");//,尽管是0,也不要忘记数 阅读全文
posted @ 2020-03-11 23:28 金桔绒绒 阅读(1437) 评论(0) 推荐(0)