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 Check available disk space on large drives?
How to create an About Box in Delphi or C++ Builder?
How to custom draw menu items?
How to Change the Windows wallpaper in code?
How to Get the current line number of a TMemo?
How to Log in to the remote datamodule?
How to Connect via ODBC using Delphi or C++ Builder ?
How to change file attributes programmatically?
How to Send a file via DCOM ?
How to Determine if a given printer is capable of printing a PostScript file?
Hi is there is any tool to debug Delphi ISAPI dlls in borland 2006 framework. AS i am a new to delphi borland i need a detailed description for debugging the web application in delphi as per my analysis the ISAPI dlls calling the htm files please help me ....
How to Display the first frame of an AVI File ?