Home  >  Article  >  Backend Development  >  How to compare two numbers in C language

How to compare two numbers in C language

藏色散人
藏色散人Original
2020-05-26 09:38:0421063browse

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

How to compare two numbers in C language

Input the header file

How to compare two numbers in C language

Input main function

How to compare two numbers in C language

Define variable type

How to compare two numbers in C language

Enter 2 numbers

How to compare two numbers in C language

Compare two numbers

How to compare two numbers in C language

Compile and run

How to compare two numbers in C language

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn