|
|
Nicolas Alvarez <nic### [at] gmailisthebestcom> wrote:
> begin
> readln("Number of Apples", apples);
> readln("Number of Carrots", carrots);
> readln("Price for 1 Apple", a_price);
> readln("Price for 1 Carrot", c_price);
> writeln("Total for Apples", a_total);
> writeln("Total for Carrots", c_total);
> writeln("Total", total);
> total := a_total + c_total;
> a_total := apples * a_price;
> c_total := carrots + c_price;
> end;
>
> * Me: "Well, your program can't print correct results before they're
> computed."
> * Him: "Huh? It's logical what the right solution is, and the computer
> should reorder the instructions the right way."
a functional programmer with no prior exposure to the imperative paradigm?!
Haskell is creating mindless monsters! :D
Post a reply to this message
|
|