#include <stdio.h>
int main(void)
{
double mass, speed, energy;
printf("질량: ");
scanf("%lf", &mass);
printf("속도: ");
scanf("%lf", &speed);
energy=0.5*mass*speed*speed;
printf("운동에너지: %lf", energy);
return 0;
}
#include <stdio.h>
int main(void)
{
double mass, speed, energy;
printf("질량: ");
scanf("%lf", &mass);
printf("속도: ");
scanf("%lf", &speed);
energy=0.5*mass*speed*speed;
printf("운동에너지: %lf", energy);
return 0;
}