Home > Article > Backend Development > How to compare two numbers in C language
#How to compare the size of two numbers in C language?
First create a new project and a .c file
Input the header file
Input main function
Define variable type
Enter 2 numbers
Compare two numbers
Compile and run
Notes
Note that there is no semicolon after the brackets in the if statement
There is no semicolon after the else language
The above is the detailed content of How to compare two numbers in C language. For more information, please follow other related articles on the PHP Chinese website!