Created
October 22, 2018 13:38
-
-
Save Music47ell/d009f1f41ae98f3699a028fe312230df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main () { | |
float boy, kilo, vki; | |
printf("Lütfen boyununuzu metre cinsinden giriniz\n"); | |
scanf("%f", &boy); | |
printf("Lütfen kilonuzu kg cinsinden giriniz\n"); | |
scanf("%f", &kilo); | |
vki=kilo/(boy*boy); | |
if (vki>=30) { | |
printf("obez"); | |
} | |
else if (vki<30 || 25<=vki){ | |
printf("kilolu"); | |
} | |
else if (vki<25 || 18.5<=vki){ | |
printf("normal"); | |
} | |
else if (vki<18.5){ | |
printf("cok zayif"); | |
} | |
else{ printf("Ölmek üzeresiniz"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment