Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how can i add 2 numbers using delphi console application
and also windows application , compare both program ,
reply immediatly



how can i add 2 numbers using delphi console application and also windows application , compare bo..

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

Post New Answer

More Delphi Interview Questions

How to change file attributes programmatically?

1 Answers  


How to change a specific IDAPI configuration setting?

0 Answers  


What version of Delphi 5 does the Code Explorer come with?

0 Answers  


How to have a TBitBtn component that has a word wrapped caption?

0 Answers  


How do I close a modal form? For that matter, what is the best way to close any form?

0 Answers  


'Insufficient memory to complete operation' error . what does this indicates?

0 Answers  


What to use in Kylix, as a possible replacement for ShellExecute in Windows?

0 Answers  


what are the different types of dBASE Unique style indexes ?

0 Answers  


How to Add TrueType fonts to windows in code?

0 Answers  


How to Retrieve a users login name ?

0 Answers  


Is there any way to record a keyboard macro in the IDE?

0 Answers  


How to use the Find Error entry under the search heading of the menu bar?

0 Answers  


Categories