Current location - Loan Platform Complete Network - Big data management - C language, using function to find the maximum value of.
C language, using function to find the maximum value of.

C language, the steps to find the maximum value with function are as follows:

1, first edit the code in vc6.0, save it as a .c file, and then click the build button (or press the keyboard F7 shortcut).

2, you can see there are no errors or warnings.

3, then press the "Run" button (or press the shortcut key Ctrl + F5) to run the program.

4, enter three numbers 454 12 861 to test the code. The result is as follows, the operation is correct.

5, publish the following three numbers to find the maximum c language code, as follows: #include <stdio.h> main (){int a, b, c; int big; printf ("Please enter 3 numbers \ n ") ; Scanf ( "%d%d%d", &a, &b, &c); if (a> = b) big = a; elsebig = b; if (c> big) big = c; printf ("Maximum is%d \ n ", big);}.