#include <stdio.h>
int main(){
int num1; // 정수형
float num2; // 실수형
scanf("%d %f", &num1, &num2);
printf("%d %f", num1, num2); // 소수점은 기본 6자리
printf("%03d %.3f", num1, num2); // 소수점 3자리
}
To embed this project on your website, copy the following code and paste it into your website's HTML: