C语言之输出控制x.x

#include <stdio.h>
void main()
{
	float a,b;
	printf("enter two ints a and b
");
	scanf("%f%f",&a,&b);
	if(a!=b)
	if (a>b)
		printf("%5.2f>%5.2f",a,b);
		else printf("%5.2f<%5.2f",a,b);
}

  

原文地址:https://www.cnblogs.com/switch-and-for/p/3390152.html