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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to launch a control panel applet?

1949


Define PRIMARYLANGID(), SUBLANGID(), and MAKELANGID() macros?

2631


What is the tag property useful for?

1805


What if I do not have a CD-ROM drive?

743


'Translate error, value out of bounds' error what does these errors mean?

2681


Why is there no "Save" button in the save dialog box?

1794


'Cannot Load IDAPI Service Library' error. What does this error mean?

1745


What is the history of Delphi?

951


What is the function of dynamic arrays?

840


How to Change RichEdit Font styles with HotKey combinations ?

1659


How to Perform undo on an edit control?

1835


How to Embede a page break in the Rich Edit control ?

2834


How to detect if a non-menu key has been pressed?

1782


Explain about Multi-Threaded ISAPI DLLs ?

2141


'Insufficient memory for this operation' error . what does this error mean?

2810