Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Can two different types of numbers, integer and floating-point number, be compared in size in C language?
Can two different types of numbers, integer and floating-point number, be compared in size in C language?
Yes, you can. . .

# include & ltstdio.h & gt

Master ()

{

int I;

float s;

Scanf("%d%f ",&me&);

If (i>s)

printf(" I & gt; s”);

else printf(" I & lt; s”);

}

LZ can experiment with this problem by itself. .