| MediaWiki:Sitenotice |
|---|
| 2026-03-12: Cocopedia.com is now using a new caching system that should make things faster. Please let me know if you encounter any new issues.
2026-03-15: MediaWiki has been reinstalled and the old database and files restored. It was pretty clogged up from being upgraded so many times since 2004. I am also testing out Cloudflare to see if it can prevent the 'bot assaults that took the site down last year. 2026-03-16: Special thanks to Don Barber for hosting a backup mirror of CoCopedia: https://cocopedia.dgb3.net |
Program Quickie: Difference between revisions
Luis46coco (talk | contribs) mNo edit summary |
Luis46coco (talk | contribs) m Luis46coco moved page Program Quiker to Program Quickie |
(No difference)
| |
Revision as of 00:31, 15 April 2019
| WELCOME |
|---|
| Looking for CoCo help? If you are trying to do something with your old Color Computer, read this quick reference. Want to contribute to this wiki? Be sure to read this first. This CoCo wiki project was started on October 29, 2004. --OS-9 Al Read-only mirror: https://cocopedia.dgb3.net |
See Recent Changes. | About this site. | Join the E-Mail List or Facebook Group. | Contact me with updates/questions.
This page was last updated on 04/15/2019. Total Pages: 751. Total Files: 999.
Home / Publications / Rainbow / Rainbow 1981 / Rainbow 1981-10 - Program Quickie
Here we begin a new feature, somewhat patterned after "MAD" magazine's famous "various places around the magazine". We hope PROGRAM QUICKIES will provide some help with short little programs for small functions that you may not have thought about -- or may not have even needed -- until now!)
One of the things it is always helpful to be able to find is the percent change (formally, the delta percent) of two numbers. here is a short little program that does just this:
10 INPUT "OLD NUMBER";X1 20 INPUT "NEW NUMBER";X2 30 DP=((X2-X1)/X1)*100 40 PRINTUSING "###.##";DP;: PRINT "% CHANGE"