fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int w;
  5. float s, bmi;
  6.  
  7. system("cls");
  8. printf("\n Dein Gewicht::");
  9. scanf("%d", &w);
  10.  
  11. system("cls");
  12. printf("\n Deine Groesse:");
  13. scanf("%f", &s);
  14.  
  15. bmi = w / ( s * s );
  16.  
  17. system("cls");
  18. printf("\n Dein BMI ist: %f", bmi);
  19. system("pause");
  20.  
  21. return 0;
  22. }
Success #stdin #stdout #stderr 0s 2116KB
stdin
Standard input is empty
stdout
  Dein Gewicht::
  Deine Groesse:
  Dein BMI ist: -6683287421192241152.000000
stderr
sh: 1: cls: not found
sh: 1: cls: not found
sh: 1: cls: not found
sh: 1: pause: not found