摘要:
#includeint main(void){ int i,k; char str1[80],str2[80]; long number; printf("Enter a string: "); i=0; while((str1[i]=getchar())!='\n') i++; str1[i]='\0'; k=0; for(i=0;str1[i]!='\0';i++) if (str1[i]>='0'&&str1[i]='a'&&str1[i]=' 阅读全文
摘要:
#includeint main(void){ char ch; printf("input characters:"); ch=getchar(); while(ch!='\n'){ if(ch>='A'&&ch='a'&&chint main(void){ char ch='w'; int a=2,b=0,c=0; float x=3.0; printf("%d",a&&b); printf("%d",a||b&a 阅读全文
摘要:
#includedouble fact_s(int n);int main(void){ int i,n; printf("Input n:"); scanf("%d",&n); for(i=1;ifloat cash;int main(void){ int choice; float value; void income(float number),expend(float number); cash=0; printf("Enter operate choice(0--end,1--income,2--expend):") 阅读全文
摘要:
#includeint main(void){ int child,men,women; for(men=0;menint main(void){ int child,men,women; for(men=0;menint main(void){ int i,x1,x2,x; x1=1; x2=1; printf("%6d%6d",x1,x2); for(i=1;i#includeint main(void){ int count,i,m,n; count=0; for(m=2;mn){ pr... 阅读全文