int main(int argc, char **argv) { float cost = 0.02; int seconds = atoi(argv[1]); float mycost = ceil(seconds * cost / 0.60) / 100; printf("%.4f\n", mycost); return 0; }