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 Embede a copyright symbol in a string?

1625


How to Obtain a list of available BDE language drivers?

1718


How to Customize TTrackBar?

1752


What should I give to Windows API functions that want a hWnd?

904


Does Delphi 5 include Resource Workshop and InstallShield Express?

2041


How to Get a list of the available drives on a system?

1615


Where is proxies.dcu?

2044


MS SQL error '17824 Unable to write to ListenOn connection ' what does this error mean?

1739


How to Use InvalidateRect()to repaint the entire form?

2137


How to Select an item in a TListView when the checkbox is checked ?

1832


Why the error "Operation must use an updateable query"?

2036


How to avoid an access violation when using the move procedure?

1751


How to Check drive ready status?

2376


What you can contribute to the IBM?.

2310


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

1625