#include <stdio.h>
int main()
{
double x = 1.234;
double y = 10.3459;
printf("절체 6자리로 맞추고 소수 3자리까지 출력 \n");
printf("x = %6.3f \n", x);
printf("y = %6.3f \n", y);
printf("\n");
printf("소수 1자리까지 출력(반올림) \n");
printf("x = %.1f \n", x);
printf("y = %.1f \n",y);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: