fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. double height , weight ;
  6.  
  7. printf("enter the height \n");
  8. scanf("%lf" , &height);
  9.  
  10. printf("enter the weight \n");
  11. scanf("%lf" , &weight);
  12.  
  13. printf("you height is %f cm \n", height);
  14. printf("you weight is %f kg \n", weight);
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 2296KB
stdin
3.14
2.71
stdout
enter the height 
enter the weight 
you height is 3.140000 cm 
you weight is 2.710000 kg