#include <stdio.h>
#include <conio.h>
int main() {
int hours, fee;
printf("<<<<<<<<<<Red bike rental shop>>>>>>>>>>\n"); printf("Sudamon Chom-a 5/10 no.17\n"); printf("Enter the number of hours you rent the red bike : "); scanf("%d", &hours);
if (hours < 3) {
fee = hours * 50;
} else if (hours <= 6) {
fee = hours * 45;
} else {
fee = hours * 40;
}
printf("Red bicycle rental fee: %d Bath", fee
); getch();
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxjb25pby5oPgoKaW50IG1haW4oKSB7CiAgICBpbnQgaG91cnMsIGZlZTsKICAgIAogICAgcHJpbnRmKCI8PDw8PDw8PDw8UmVkIGJpa2UgcmVudGFsIHNob3A+Pj4+Pj4+Pj4+XG4iKTsKICAgIHByaW50ZigiU3VkYW1vbiBDaG9tLWEgNS8xMCBuby4xN1xuIik7CiAgICBwcmludGYoIkVudGVyIHRoZSBudW1iZXIgb2YgaG91cnMgeW91IHJlbnQgdGhlIHJlZCBiaWtlIDogIik7CiAgICBzY2FuZigiJWQiLCAmaG91cnMpOwoKICAgIGlmIChob3VycyA8IDMpIHsKICAgICAgICBmZWUgPSBob3VycyAqIDUwOwogICAgfSBlbHNlIGlmIChob3VycyA8PSA2KSB7CiAgICAgICAgZmVlID0gaG91cnMgKiA0NTsKICAgIH0gZWxzZSB7CiAgICAgICAgZmVlID0gaG91cnMgKiA0MDsKICAgIH0KCiAgICBwcmludGYoIlJlZCBiaWN5Y2xlIHJlbnRhbCBmZWU6ICVkIEJhdGgiLCBmZWUpOwogICAgZ2V0Y2goKTsKICAgIHJldHVybiAwOwp9