how can i add 2 numbers using delphi console application
and also windows application , compare both program ,
reply immediatly
Answer / faizulla khan
program Project1;
{$APPTYPE CONSOLE}
uses
SysUtils;
var
f1, f2: integer;
s: string;
begin
{ TODO -oUser -cConsole Main : Insert code here }
try;
f1:=0;
f2:=0;
write('Enter first integer: ');
readln(f1);
write('Enter second integer: ');
readln(f2);
writeLn('The numbers add up to '+inttostr(f1+f2));
writeLn('Press enter to quit');
except
on E : Exception do
writeln(E.Classname+' '+e.message);
end;
readln;
end.
| Is This Answer Correct ? | 18 Yes | 5 No |
How to launch a control panel applet?
How to eject a CD-ROM in code?
How to Create a Lookup field at runtime ?
How to Determine if Delphi Running?
what are the Font problems on NT 4.0?
How to Determine if you have Delphi v3.02 installed?
What are the different ways of defining array sizes?
How to place a bitmap in a Metafile?
How to adjust the tab location in a TMemo component ?
Where is the file dsgnintf.pas?
How to generate steps to reproduce your issue for Borland Developer Support?
How to Re-execute export From Table ?