Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4095
Number of posts: 14004

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Pascal Program! Help Me Urgent Posted by laracpuff on 30 Dec 2004 at 10:32 AM
Hi I Have to write a pascal program, that can be used as a calculator to perform any of the 4 basic arithmetic functions(addiotion, multiplication, subtraction and division for any two integers ata a time!
Can anyone help??
Report
Re: Pascal Program! Help Me Urgent Posted by zibadian on 30 Dec 2004 at 11:26 AM
: Hi I Have to write a pascal program, that can be used as a calculator to perform any of the 4 basic arithmetic functions(addiotion, multiplication, subtraction and division for any two integers ata a time!
: Can anyone help??
:
You need to ask the user 3 things: the 2 integers and the operation. This is best done using the Readln() statement. Then you use an if-then-else statement to perform the actual calculation. The final part is to show the result to the user using a Writeln() statement.
Hint: you might also want to use Write() to show, which piece of information the user is entering.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.