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 Link an animated cursor to a resource file?
What are the different types of object allocations methods in delphi?
Why reusing or inheriting from a Remote Data Module is not a good idea?
What databases can be used with dbExpress?
How to Handle exceptions in Delphi?
Does the BDE use Client side or server side cursors for MSSQL?
How to Change the main form of an application at runtime ?
How to Embede a copyright symbol in a string?
how can i add 2 numbers using delphi console application and also windows application , compare both program , reply immediatly
How to Force edit mode in a TListView via a keypress ?
What is the procedure to connect delphi application to ms access database?
How to Test IDispatch Descendants?