If you can complete each of the following then you are a good candidate for CMPS 12A/L.

For each of the following problems, you can use any programming language you like. Pseudo-code is acceptable but not preferred. 

    • Write a program that reads a number from the user and then prints out the square of that number.
    • Write a program that prints out the first 100 perfect squares (i.e. 1, 4, 9, 16, ..., 10000) one per line.
    • Write a program that reads in two numbers and then prints out the larger of the two.