首页 > 代码库 > 160809312 王仲超 三

160809312 王仲超 三

#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 (){    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(){    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;    printf("请输出等级:");     scanf ("%c",&score);//A B C D E     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("输入有误\n");    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>
#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(){    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>//求下落距离 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 c ;   double f;   scanf("%d",&c);   if(c<=50)     {f=0.53*c;}   else     {f=50*0.53+(c-50)*0.05;}   printf("费用为:%lf",f);   return 0;}

 

160809312 王仲超 三