Can anybody tell me what is wrong with this code? -
EliteForce
I am using Delphi to do some programing. I am creating a "Console Application"
I have written up a code:
program Calc; {$APPTYPE CONSOLE}
var boars,minutes : integer;
begin { TODO -oUser -cConsole Main : Insert code here }
writeln(' This program Calculates the amount of Boars killed...' );
writeln( 'Please Enter the amount of minutes played' );
readln(minutes);
boars := minutes // 4;
writeln('The amount of boars killed is',boars);
readln;
end.
When ever I click F9, to run the application, Delphi selects the following line in red, to represent an error:
writeln('The amount of boars killed is',boars);
I am not sure what the error is, so can anybody please help me.
Thanks in advance.
Best Answers are selected by the person who asked the question or other Yahoo! users. Find out more at Yahoo! Answers.
Enter a keyword below to find questions and answers from real people.
Want to ask a question? Go to Yahoo! Answers
| Computers | Home Office | Wi-Fi & Networking | Phones & PDAs | Cameras & Camcorders | TV & Home Theater | Portable Audio |
|---|---|---|---|---|---|---|
Please enable your browser's cookies to activate the My Tech column.