可以的。。。include <stdio.h> main(){ int i;float s;scanf("%d%f",&i,&s);if (i>s)printf("i>s");else printf("i