Sitenotice: 11/29/2018: The wiki is back. It turns out, some anti-virus product on my web server had an issue with the latest version of PHP. My server techs have resolved this issue, and things should be working again. During the investigation, I did restore to a backup from September. There is a chance that any changes done since then were lost, but I do not recall any edits. --OS-9 Al

8/30/2016: Massive re-work is being done on the InfoBox Templates. Read that page to keep up with the plan for that, and adding better keyword tags (categories) to all the pages. --OS-9 Al (talk) 15:28, 31 August 2016 (CDT)

Program Quickie

From CoCopedia - The Tandy/Radio Shack Color Computer Wiki
(Redirected from Program Quiker)
Jump to: navigation, search
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

See Recent Changes. | About this site. | Join the E-Mail List, Facebook Group or Google+ | Contact me with updates/questions.

This page was last updated on 05/3/2019. Total Pages: 650. Total Files: 937.


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"

Links

See this article as it appeared in the magazine, in Archive.org