Math.c
上传用户:dq031136
上传日期:2022-08-08
资源大小:802k
文件大小:0k
源码类别:

VC书籍

开发平台:

C++ Builder

  1. #include <stdio.h>
  2. void main(void)
  3.  {
  4.    int seconds_in_an_hour;  
  5.    float average;
  6.    seconds_in_an_hour = 60 * 60;
  7.    average = (5 + 10 + 15 + 20) / 4;
  8.    printf("The number of seconds in an hour %dn", seconds_in_an_hour);
  9.    printf("The average of 5, 10, 15, and 20 is %fn", average);
  10.    printf("The number of seconds in 48 minutes is %dn", seconds_in_an_hour - 12 * 60);
  11.  }