Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Norberg/calc

Open more actions menu

Repository files navigation

README.txt for the test .calc programs

The following programs are available and should produce the following results.

gcd.calc - Computer the greatest common divisor between 732 and 2684 using Euclide's original algorithm. Also tests your implementation of 'gcd' by a direct all and printout of the result.
           Should produce the result 244.

harmonic.calc - Print the harmonic number summing the first 1 million terms. Answer: 14387. 

looptest.calc - Loop over the first 101 numbers, printing each on a line by itself starting from 100. Output:
                100
                99
                ...
                1
                0

pi.calc - Computer the value of pi using fixed point arithmetic, answer: 314156, using Leibniz formula.

fact.calc - Prints the result of your factorial implementation
	  Should printout the value 0 twelve times.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.