Use the Linux simulator to write C programs (with detailed steps)

 

step1: Create a C program file, such as vi mul.c

step2: Write the C program code you want to write, such as

step3: After writing the program, press the ESC key, then press shift+: (colon), enter wq, and click enter

step4: Compile the program, enter the command gcc -o mul mul.c

step5: Run the program and enter the command ./mul

So far, a C language program runs successfully

Guess you like

Origin blog.csdn.net/qq_38452951/article/details/90700357