zoukankan      html  css  js  c++  java
  • 实验


     

    #include<stdio.h>
    int main(void)
    {
        double R,s;
    
        printf("Enter R:");
        scanf("%lf",&R);
        if(R<=0){
            printf("You are wrong.
    ");
        }
        else{
            s=3.14*R*R;
            printf("f(%.2f)=%.2f
    ",R,s);
        }
        
        return 0;
    }
    #include<stdio.h>
    int main(void)
    {
        int i,n;
        double R,V,H;
    
        printf("Enter n:");
        scanf("%d",&n);
        printf("Enter H:");
        scanf("%Lf",&H);
        printf("Enter R:");
        scanf("%Lf",&R);
    
        if(R,H<=0){
            printf("你的输入有误。
    ");
        }
        else{
            for(i=1;i<=n;i++){
                V=3.14*R*R*H*i;
                printf("V=%.2f
    ",V);
            }
        }
    
        return 0;
    }
    #include<stdio.h>
    int main()
    {
        int c1,c2,c3,c4;
        scanf("%d%d",&c1,&c2);
        printf("%d
    ",c1+c2);
    
        getchar();
        c3 = getchar();
        c4 = getchar();
    
        printf("%d
    ",c3+c4);
        return 0;
    }

    #include<stdio.h>
    int main()
    {
        char c1,c2,c3,c4;
        scanf("%c%c",&c1,&c2);
        printf("%c %c
    ",c1,c2);
        getchar();
        c3 = getchar();
        c4 = getchar();
        printf("%c %c
    ",c3,c4);
        printf("%c %c %c %c
    ",c1,c2,c3,c4);
        return 0;
    }

  • 相关阅读:
    02动手动脑
    动手动脑01
    千锤百炼软工6,7,8
    千锤百炼软工10.5
    千锤百炼软工10.4
    千锤百炼软工10.3
    千锤百炼软工10.2
    千锤百炼软工10.1
    千锤百炼软工9.30
    破解 webstorm
  • 原文地址:https://www.cnblogs.com/sally959/p/3367557.html
Copyright © 2011-2022 走看看