/*#include <stdio.h>

int main(void)
{
    int a;

    scanf("%d", &a);
    printf("입력된 값: %d\n", a);

    return 0;

    
}*/

/*#include <stdio.h>

int main(void)
{
        int age;
    double height;

    printf("나이와 키를 입력하세요: ");
    scanf("%d%lf", &age, &height);
    printf("나이는 %d살, 키는 %.1lfcm입니다\n", age, height);

    return 0;
}*/

/*#include <stdio.h>

int main(void)
{
    int age;
    double height;
    int weight;


    printf("나이와 키와 몸무게를 입력하세요: ");
    scanf("%d%lf%d", &age, &height, &weight);

    double BMI;

    BMI = weight / ((height * 0.01) * (height * 0.01)); //여기서 분모 전체를 괄호로 안 묶어줘서 약분 돼버림.
    
    printf("나이는 %d살, 키는 %.1lfcm, 몸무게는 %dkg, BMI지수는 %.1lf입니다\n", age, height, weight, BMI);
    

    return 0;


}
*/















Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: