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 Resize StringGrid Columns ?
How to Change the display mode settings in code?
how can i add 2 numbers using delphi console application and also windows application , compare both program , reply immediatly
How to Change the font in a hint window ?
Explain the MasterSource/MasterFields behavior?
How does Delphi handle Windows callbacks?
'Name Conflicting' . what does this error mean?
what are the Current MSACCESS driver limitations ?
'Insufficient memory for this operation' error . what does this error mean?
How to Free an object stored in a list?
How to Log in to the remote datamodule?
why Paradox slow on some computers and not on others ?