Risolto


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

circa 8 anni fa

Risolto


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

circa 8 anni fa

Risolto


Add two numbers
Given a and b, return the sum a+b in c.

circa 8 anni fa

Risolto


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

circa 8 anni fa