#include "stdafx.h"
#include "iostream"
using namespace
std;
int main()
{
int
bobot;
cout<<" Menentukan Ketegori Bobot Tubuh Melalui Berat
Anda"<<endl;
cout<<" Input Berat Badan =
";cin>>bobot;
if
(bobot >120 && bobot <= 180)
{
cout<<" Anda Sangat Gemuk"<<endl;
}
else
if (bobot >60 && bobot <= 85)
{
cout<<" Berat Anda Seimbang"<<endl;
}
else
if (bobot >30 && bobot <=55)
{
cout<<" Anda Kurus"<<endl;
}
else
{
cout<<"Anda Tidak Masuk Kategori"<<endl;
}
system("pause");
return
0;
Output Programnya :
No comments:
Post a Comment