class TPCalc : GLib.Object { public static int main(string[] args) { double p; double r; double s; if (args.length != 4) { stdout.printf("usage: %s price rolls sheets-per-roll\n", args[0]); return 0; } p = double.parse(args[1]); r = double.parse(args[2]); s = double.parse(args[3]); stdout.printf("%f\n", (p/(r*s)) ); return 0; } }