You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
309 B
15 lines
309 B
#include <stdio.h>
|
|
|
|
int run_bmi()
|
|
{
|
|
float var1 = 0;
|
|
float var2 = 0;
|
|
|
|
printf("\nBMI-Rechner\n\nGeben Sie ihre Groesse in m an(Bsp: 1.8): ");
|
|
scanf("%f", &var1);
|
|
|
|
printf("\nGeben Sie ihr Gewicht in kg an: ");
|
|
scanf("%f", &var2);
|
|
|
|
printf("\nIhr Body-Mass-Index liegt bei %.2f\n", var2 / (var1 * var1));
|
|
}
|