Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  副檔案c1A(13)
Language: C/C++
Code:
#include <stdio.h>
int main(int argc, char *argv[])
{
     printf("Hello World!");
     getchar();
     return 0;
}
          
#include <stdio.h>
#include <math.h>
int main()
{
float H,W,BMI;
printf("Please input your height(m):");
scanf("%f",&H);
printf("Please input your weight(kg):");
scanf("%f",&W);
BMI = W/pow(H,2);
printf("Your BMI is :%0.1f\n",BMI);
return 0;
}
Comments: