fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5.  
  6. int gewicht;
  7. float groesse;
  8. float BMI;
  9.  
  10. scanf("%d", &gewicht);
  11. scanf("%f", &groesse);
  12.  
  13. BMI = gewicht / (groesse * groesse);
  14. printf("%d %% (%f * %f) = %f \n", gewicht, groesse, groesse, BMI);
  15.  
  16.  
  17.  
  18.  
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 2116KB
stdin
884 4637.7643
stdout
884 % (4637.764160 * 4637.764160) = 0.000041