Skip to content

Instantly share code, notes, and snippets.

@smyy96
Created January 20, 2022 22:38
Show Gist options
  • Save smyy96/e124e3c444d9de3e91afa5d8aa921b14 to your computer and use it in GitHub Desktop.
Save smyy96/e124e3c444d9de3e91afa5d8aa921b14 to your computer and use it in GitHub Desktop.
Pativa Java 101 Ödev 1
import java.util.Scanner;
public class VucutKitleİndeks {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
double boy,kilo;
System.out.print("Lütfen boyunuzu (metre cinsinde) giriniz :");
boy=input.nextDouble();
System.out.print("Lütfen kilonuzu giriniz :");
kilo=input.nextDouble();
//boy=boy*10;
System.out.print("Vücut Kitle İndeksiniz :"+(kilo/(boy*boy)));
}
}
@smyy96
Copy link
Author

smyy96 commented Jan 20, 2022

Vücut Kitle İndeksi Hesaplama

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment