摘要:
#includeint main(void){ void sum_diff(float op1,float op2,float *psum,float *pdiff); float psum,pdiff; float op1,op2; //用float,用%f; printf("输入op1,op2:"); scanf("%f%f",&op1,&op2); //调用函数; sum_diff(op1,op2,&psum,&pdiff); printf("*psum=%f,*pdiff=%f",psum,pd 阅读全文
摘要:
//输入2个正整数m和n(1≤m,n≤1000),输出m~n之间的所有水仙花数。水仙花数是指各位数字的立方和等于其自身的数。#include#includeint main(void){ int n,m,i;//m>=1,nint main(void){ int i,n; int x,y; x=0; y=0; printf("enter n:"); scanf("%d",&n); //数组 int a[80]; for(i=1;i=y) printf("是回文。"); else printf("不是回... 阅读全文