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 Link an animated cursor to a resource file?

0 Answers  


What are the different types of object allocations methods in delphi?

0 Answers  


Why reusing or inheriting from a Remote Data Module is not a good idea?

0 Answers  


What databases can be used with dbExpress?

1 Answers  


How to Handle exceptions in Delphi?

0 Answers  


Does the BDE use Client side or server side cursors for MSSQL?

0 Answers  


How to Change the main form of an application at runtime ?

0 Answers  


How to Embede a copyright symbol in a string?

0 Answers  


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

1 Answers  


How to Force edit mode in a TListView via a keypress ?

0 Answers  


What is the procedure to connect delphi application to ms access database?

0 Answers  


How to Test IDispatch Descendants?

0 Answers  


Categories