A C program for comparing three numbers.

import the standard input/output library

The main function is declared with three integer variables named num1, num2, and num3.

Enter three integers printf statements.

If num1 is greater than both num2 and num3, then num1 is the largest. If num2 is greater than both num1 and num3, then num2 is the largest. If num3 is greater than both num1 and num2, then num3 is the largest.

End the program by returning a value of 0.

Leave a Reply 0

Your email address will not be published. Required fields are marked *


广告
Closing in 10 seconds
bannerAds