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 execute a stored procedure with TIBSQL?
How to Print a web page using the HTML control?
How does one change the default directory that Delphi uses to save projects?
How to adjust the tab location in a TMemo component ?
How to Manually uninstall Delphi?
what are the uses of Arrow and Function Keys ?
How to enable the cut and copy operations for the TWebBrowser component in Delphi 5?
Do the ADO components come with the professional version of Delphi 6?
How to create an About Box in Delphi or C++ Builder?
Why reusing or inheriting from a Remote Data Module is not a good idea?
how can i add 2 numbers using delphi console application and also windows application , compare both program , reply immediatly
I am trying to call from Delphi and it GPFs. Whats up?