首页 > 代码库 > 第三次作业160809308周子济

第三次作业160809308周子济

#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()//
#include<stdio.h>#include<math.h>int main()//
#include<stdio.h>int main()//求152个十百位。。。。
#include<stdio.h>int main()//
#include<stdio.h>int main()//落体 {
#include<stdio.h>#include<math.h>int main()//温度 {    int c;    int f;    printf("请输入华氏温度:\n");    scanf("c=%d",&f) ;    c=5*(f-32)/9;    return 0;}

 

int height;     int t=3;     int g=10;     height=0.5*g*t*t;     printf("%f\n",height);     return 0;}

 

{    printf("*\n");    printf("* *\n");    printf("* * *\n");    printf("* * * *\n");    printf("* * * * *\n");    printf("* * * * * *\n");    printf("* * * * * * *\n");    printf("* * * * * * * *\n");    printf("* * * * * * * * *\n");    printf("* * * * * * * * * *\n");}   

 

{    int a=152;    int b;    int c;    int d;    b=a/100;    c=(a/10)%10;    d=a%10;    printf("%d %d %d",b,c,d);}

 

{    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);    return 0;}

 

{    printf("* * * * * * * * * *\n");    printf("* * * * * * * * * *\n");    printf("* * * * * * * * * *\n");    printf("* * * * * * * * * *\n");    printf("* * * * * * * * * *\n");    printf("* * * * * * * * * *\n");    printf("* * * * * * * * * *\n");    printf("* * * * * * * * * *\n");    printf("* * * * * * * * * *\n");    printf("* * * * * * * * * *\n");}

 

第三次作业160809308周子济