C语言之输出控制x.x

#include <stdio.h>
void main()
{
	float a,b;
	printf("enter two ints a and b\n");
	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);
}

  

posted @ 2013-10-26 23:10  云,不忘初心  阅读(169)  评论(0编辑  收藏  举报