2021.03.09 欧阳法创编 2021.03.09
Chapter 2 Programming Exercises
时间:2021.03.09 创作:欧阳法 PE 2--‐1
/* Programming Exercise 2-1 */ #include
{ printf(\Gustav Mahler\\n\printf(\tav\\nMahler\\n\printf(\tav \
2021.03.09 欧阳法创编 2021.03.09
2021.03.09 欧阳法创编 2021.03.09
printf(\ler\\n\return 0; }
PE 2--‐3
/* Programming Exercise 2-3 */ #include
{ int ageyears; /* age in years */ int agedays; /* age in days */
/* large ages may require the long type */ ageyears = 101; agedays = 365 * ageyears;
printf(\ageyears, agedays); return 0; }
2021.03.09 欧阳法创编 2021.03.09
2021.03.09 欧阳法创编 2021.03.09
PE 2--‐4
/* Programming Exercise 2-4 */ #include
2021.03.09 欧阳法创编 2021.03.09