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 |
'General SQL Error : Connection does not exist' in threaded application . what does this indicates?
How to Display 4 digit years in Delphi applications?
How to Print Delphi controls using QuickReports?
Where can we obtain the help file for the VtChart component?
"EOleSysError : Error loading type library/DLL" . what does this error mean?
How to Initialize an array or record to null?
How to Determine if a given printer is capable of printing a PostScript file?
How to Print a TStringGrid / TDBGrid?
what are the uses of Arrow and Function Keys ?
How do we get access to a database from Delphi?
Do the ADO components come with the professional version of Delphi 6?
Compare the similarities and differences among Sockets, DCOM, OLE Enterprise?