zoukankan      html  css  js  c++  java
  • 4.11实验一

    1.

    #include<stdio.h>
    int main()
    {
     int a,b,sum;
     a=123;
     b=456;
     sum=a+b;
     printf("sum is %d ",sum);
     return 0;

    }

    2.

    #include<stdio.h>
    int main()
    {
     char c1,c2;
     c1=97;
     c2=98;
     printf("c1=%c,c2=%c ",c1,c2);
     printf("c1=%d,c2=%d ",c1,c2);

    }

    3.

    #include<stdio.h>

    int main()

    {  

    char c1,c2;

     c1=197;

     c2=198;

     printf("c1=%c,c2=%c ",c1,c2);

     printf("c1=%d,c2=%d ",c1,c2); 

     return 0;

    }

     

    4.

    #include<stdio.h>
    #include<math.h>
    int main()
    {
     double x,y,z;
     scanf("%lf,%lf",&x,&y);
     z=x+1/fabs(y);
     printf("z=%d ",(int)z);
        printf("z=%15.6f ",z);
        printf("z=%e ",z);
     return 0;
    }

  • 相关阅读:
    派生选择器
    HTML 标签
    $.get()
    CC150
    CC150
    CC150
    CC150
    HashMap和HashTable的区别
    CC150
    quickSort
  • 原文地址:https://www.cnblogs.com/P201821430045/p/10689810.html
Copyright © 2011-2022 走看看