#include<iostream.h>
main()
{
int x,y,t;
cout<<" Mengetahui Ukuran Baju "<<endl;
cout<<"------------------------\n"<<endl;
cout<<" Kategory : "<<endl;
cout<<" 1. Pria "<<endl;
cout<<" 2. Wanita "<<endl;
cout<<" Pilih Kategory (1/2) : ";
cin>>x;
if (x==1)
{int t;
cout<<" \n Kategory Pria \n";
cout<<" ------------- \n";
cout<<" Masukan Tinggi Badan Anda? (165-180) ";
cin>>t ;
if (t>=165 && t<=168)
cout<<" Tinggi="<<t<<" cm."<<" Ukuran Baju Anda 'S'\n";
else if (t>168 && t<=170)
cout<<" Tinggi="<<t<<" cm."<<" Ukuran Baju Anda 'M'\n";
else if (t>170 && t<=172)
cout<<" Tinggi="<<t<<" cm."<<" Ukuran Baju Anda 'L'\n";
else if (t>170 && t<=174)
cout<<" Tinggi="<<t<<" cm."<<" Ukuran Baju Anda 'XL'\n";
else if (t>174 && t<=180)
cout<<" Tinggi="<<t<<" cm."<<" Ukuran Baju Anda 'XXL'\n";
else
cout<<" Tinggi="<<t<<" cm."<<" Ukuran Baju Anda Belum Tersedia \n";
}
else if (x==2)
{int t;
cout<<" \n Kategory Wanita \n";
cout<<" --------------- \n";
cout<<" Masukan Tinggi Badan Anda? (160-175) ";
cin>>t ;
if (t>=160 && t<=165)
cout<<" Tinggi="<<t<<" cm."<<" Ukuran Baju Anda 'S'\n";
else if (t>165 && t<=168)
cout<<" Tinggi="<<t<<" cm."<<" Ukuran Baju Anda 'M'\n";
else if (t>168 && t<=170)
cout<<" Tinggi="<<t<<" cm."<<" Ukuran Baju Anda 'L'\n";
else if (t>170 && t<=172)
cout<<" Tinggi="<<t<<" cm."<<" Ukuran Baju Anda 'XL'\n";
else if (t>172 && t<=175)
cout<<" Tinggi="<<t<<" cm."<<" Ukuran Baju Anda 'XXL'\n";
else
cout<<" Tinggi="<<t<<" cm."<<" Ukuran Baju Anda Belum Tersedia \n";
}
else
cout<<" Kategory tidak Ada.\n";
cout<<" Terimakasih\n ";
}
0 comments :
Posting Komentar