Evaluate binomial coefficients: Difference between revisions

Add Plain English
(Added Wren)
(Add Plain English)
Line 1,979:
<pre>
10
</pre>
 
=={{header|Plain English}}==
<lang plainenglish>To run:
Start up.
Evaluate a binomial coefficient given 5 and 3.
Convert the binomial to a string. Write the string on the console.
Wait for the escape key.
Shut down.
 
A coefficient is a number.
 
To evaluate a binomial coefficient given a number and another number:
Put 1 into the binomial.
Loop.
If a counter is past the other number, exit.
Put the number plus 1 minus the counter divided by the counter into a multiplier number.
Multiply the binomial by the multiplier.
Repeat.</lang>
{{out}}
<pre>
10
</pre>
 
1,808

edits