|
Non-technical |
My pet is my code
|
Guanacaste |
Coincidencias |
A hora do mergulho |
|
Miscellaneous |
The edge around the net
|
|
Playground Code
|
Rational Numbers
Write a program that, given an integer N between 1 and 100
inclusive, prints the rational numbers between 0 and 1 with denominators less
than or equal to N in order of increasing magnitude. Also, count the total
number of rational numbers found. The Programs must reject inputs where N is
less than 1 or greater than 100. |
Silly Sort
An (XY, D)-CIRCULAR NUMBER is a number whose last two digits
are X and Y, where the multiplication of the number by the single digit D is
equivalent to moving the last two digits (XY) to the beginning of the number.
For example, the number 132832080200501253 is a (53, 4)-circular number because
132832080200501253 * 4 = 531328320802005012. Write a program that asks for a
two-digit number XY and a single digit D, and prints the SMALLEST (XY,
D)-CIRCULAR NUMBER or prints a message "NONE" if none exists. |
Stop Sign
Write a program that will generate and print out a STOP sign as shown below of
size N, where N is an integer >= 3. The stop sign should be an octagon with
N stars on each side. The word "S T O P" should be printed in the center of the
stop sign. |
|
|