Examples of the C language - determines the maximum number of three in number.

We enter through the screen three digits and find the largest number.

#include <stdio.h>
int main ()
{
    Double N1, N2, N3;
    the printf ( "Please enter the number of three, separated by a space:");
    Scanf ( "LF%%% LF LF", & N1, N2 &, & N3);
    IF (N1> = N2 && N1> = N3)
    the printf (. "%. 2F is the maximum number.", N1);
    IF (N2> = N1 && N2> = N3)
    . the printf ( "%. 2F is the maximum number ", N2);.
    IF (N3> N1 = N3 &&> = N2)
    the printf (."% is the maximum number. 2F ", N3);.
    return 0;
}

Guess you like

Origin www.cnblogs.com/zhangdemingQ/p/12146722.html