#include<stdio.h>
int main(){
float x,y;
scanf("%f",&x);
if(x!=0){
y=1/x;
else
y=0;
}printf("f(%0.1f) = %0.1f",x,y);
return 0;
}

第二题

#include<stdio.h>
int main(){
int A,B;
float c;
scanf("%d %d",&A,&B);
if(B>0){
c=(float)A/B;
printf("%d/%d=%0.2f",A,B,c;}
else if(B<0){
x=(float)A/B;
printf("%d/(%d)=%0.2f",A,B,c);
if(b==0)
printf("%d/%d=Error",A,B);
}
}

#include<stdio.h>
int main()
{
int A; float B; scanf("%d",&A); if(A<=0){ printf("Invalid Value!");
else{
B=0.53*50+(A-50)*0.58;
printf("cost = %0.2f",B)
else if(a<=50){
b=0.53*A;
printf("cost = %0.2f",B);

}return 0;
}

第七题#include <stdio.h>int main(){  int m;

float A,C;
scanf("%f %d",&A,&m);
if(A<=3&&m<5)
C=10;
else
C=10+m/5*2; else
if(A>3&&A<=10 &&m<5) C=(A-3)*2+10; else
if(A>3&&A<=10 &&m>=5) C=(A-3)*2+10+m/5*2; else
if(A>10&&m<5) C=24+(A-10)*3; else
if(A>10&&m>=5) C=24+(A-10)*3+m/5*2; printf("%.0f",C); return 0; }

https://coding.net/u/xukeai222/p/XUJINGQI/git

## 本周学习内容总结：

http://www.cnblogs.com/1999-cyc/p/7735327.html

http://www.cnblogs.com/boke2017boke/p/7739295.html

http://www.cnblogs.com/mayuxin/p/7735130.html