#include <iostream>
using namespace std;
int main() {
int harga = 3000;
int jumlahhari = 30;
int bebek = 27;
int kilo, total;
if (bebek >= 20 && bebek <= 25) {
kilo = 1;
} else if (bebek >= 26 && bebek <= 35) {
kilo = 2;
} else if (bebek >= 36 && bebek <= 45) {
kilo = 3;
}
total = kilo * harga * jumlahhari;
cout << "Masukkan Jumlah Ternak : " << bebek << endl;
cout << "Total Kebutuhan Dana : " << total << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBpbnQgaGFyZ2EgPSAzMDAwOwogICAgaW50IGp1bWxhaGhhcmkgPSAzMDsKICAgIGludCBiZWJlayA9IDI3OwogICAgaW50IGtpbG8sIHRvdGFsOwoKICAgIGlmIChiZWJlayA+PSAyMCAmJiBiZWJlayA8PSAyNSkgewogICAgICAgIGtpbG8gPSAxOwogICAgfSBlbHNlIGlmIChiZWJlayA+PSAyNiAmJiBiZWJlayA8PSAzNSkgewogICAgICAgIGtpbG8gPSAyOwogICAgfSBlbHNlIGlmIChiZWJlayA+PSAzNiAmJiBiZWJlayA8PSA0NSkgewogICAgICAgIGtpbG8gPSAzOwogICAgfQoKICAgIHRvdGFsID0ga2lsbyAqIGhhcmdhICoganVtbGFoaGFyaTsKCiAgICBjb3V0IDw8ICJNYXN1a2thbiBKdW1sYWggVGVybmFrIDogIiA8PCBiZWJlayA8PCBlbmRsOwogICAgY291dCA8PCAiVG90YWwgS2VidXR1aGFuIERhbmEgOiAiIDw8IHRvdGFsIDw8IGVuZGw7CgogICAgcmV0dXJuIDA7Cn0=