Work report > Experiment report

c language experiment report


Student ID: __________ Name: __________ Class: __________ Date: __________

Instructor: __________ Grade: __________

Experiment 1 Initial and simple C program design on the machine operation 1. Experimental purpose
1, familiar with the C language operating environment Turbo C++3.0
2, will be simple program debugging
3, familiar with the use of input and output functions of various types of C language data
4, master the sequence structure programming II, the experimental content
1. Run the three examples in this chapter on the machine and familiarize yourself with the methods and steps of the system used.
2. Write a C program and enter 3 values ​​a, b, and c to output the largest one.
3. Set the circle radius r=1.5, the cylinder height h=3, and find the circumference length, the circle area, the surface area of ​​the sphere, the volume of the sphere, and the volume of the cylinder. Use scanf to input data and output the calculation result. The output requires a text description, taking 2 digits after the decimal point. Note: Chinese characters cannot be entered in Trubo C++ 3.0, only English or Pinyin can be entered.
4. Run the following program to write the running result. The first ┆ 文 文 网 整理 整理 整理 整理 整理 整理 整理 整理 整理 整理 整理 整理 整理 整理 整理 整理
#include
Void main
{
Int a=1, b=2;
a=a+b; b=ab; a=ab;
Printf;
}
Third, the experimental steps and processes

Fourth, the program debugging record

recommended article

popular articles