首页 > 代码库 > 160809309 朱玉撑 第三次作业

160809309 朱玉撑 第三次作业

#include<stdio.h>//int main(){        printf("*\n");    printf("**\n");    printf("***\n");    printf("****\n");    printf("*****\n");    printf("******\n");    printf("*******\n");    printf("********\n");    printf("*********\n");    printf("**********\n");    }
#include<stdio.h>//int main(){    printf("**********\n");    printf("**********\n");    printf("**********\n");    printf("**********\n");    printf("**********\n");    printf("**********\n");    printf("**********\n");    printf("**********\n");    printf("**********\n");    printf("**********\n");}
#include<stdio.h>//int main(){    printf("**********\n");    printf("*********\n");    printf("********\n");    printf("*******\n");    printf("******\n");    printf("*****\n");    printf("****\n");    printf("***\n");    printf("**\n");    printf("*\n");    return 0 ; }
#include<stdio.h>int main(){    char score;    scanf("%c",&score);    switch(score)    {        caseA:        printf("90~100");        break;        caseB:        printf("80~89");        break;        caseC:        printf("70~79");        break;        caseD:        printf("60~69");        break;        caseE:        printf("0~59");        break;        default:        printf("输入有误");        break;     }    return 0;
#include<stdio.h> int main(){    int F=100;    int C;    C=(5*(F-32)/9);     printf("%d",C);    return 0;}
#include<stdio.h>int main(){    int t=3;    int g=10;    int H;    H=0.5*g*t*t;    printf("f(t)=%d",H);    return 0;    }
#include<stdio.h>int main(){    int a,b,c,d;    a=152;    b=a/100;    c=(a/10)%10;    d=a%10;    printf("百位是%d 十位是%d 个位是%d",b,c,d);    return 0;}
#include<stdio.h>#include<math.h>int main(){    double x;    double y;    scanf("%lf",&x);    if(x>=0)    y=sqrt(x);    else    y=pow(x+1,2)+2*x+1/x;    printf("f(x)=%f",y);}
#include<stdio.h>int main(){    double x;    double y;    scanf("%lf",&x);    if(x<=50)    y=0.53*x;    else    y=0.53*50+(x-50)*0.58;    printf("f(x)=%f",y);}

 

160809309 朱玉撑 第三次作业