Graderpractice for programmers

254271 Fun of Prog 63 - Mini Test 1

Awaiting submission
Read in a number and check if it is divisible by 2 or 3. Output "2" when it is divisible by 2, "3" when is is divisible by 3, and "-" when it is neither divisible by 2 nor 3. If it is divisible by 2 and 3 then output "23".
Awaiting submission
Write a program that inputs the width and height of a rectangle and then draws it using *s.
Awaiting submission
Read in lines of input until "stop". Print out the number of characters in the words, not including "stop".

Hint: you might want to use a do-while or while loop containing a nextLine to read input.

Awaiting submission
Read in a number. Print out the factorial. (5! = 5 * 4 * 3 * 2 * 1 = 120)
Awaiting submission
Read in a number (greater than 2). Print out a U shape of that size.