C++ Hitung Berat Badan Ideal

#include<iostream>
#include<conio.h>
int main(){
int a,c,d,e,t,b,z,s=100;
float p=0.1;
cout<<"\n";
cout<<"   ===========================\n";
cout<<"   ===> BERAT BADAN IDEAL <===\n";
cout<<"   ===========================\n";
cout<<"\n";
cout<<" Masukkan Tinggi Badan : ";
cin>>t;
cout<<" Masukkan Berat Badan : ";
cin>>b;
cout<<"\n";
cout<<" !!!!!!!!!!!\n";
cout<<" !! HASIL !!\n";
cout<<" !!!!!!!!!!!\n\n";
z=((t-s)-(t-s)*p);
if((b-z==2)||(b-z==-2)){cout<<" IDEAL ";}
else{cout<<" TIDAK IDEAL ";}
getch();
}

0 Response to "C++ Hitung Berat Badan Ideal"

Posting Komentar