c_22
user_6195717
c_cpp
2 years ago
184 B
22
Indexable
#include<stdio.h>
int main() {
int number, cash = 80;
scanf("%d", &number);
if(number > 1500) {
cash += (number/500 - 2)*5;
}
printf("%d", cash);
}Editor is loading...