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);
}
#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);
}