Professional Documents
Culture Documents
Mplab
Mplab
Problem 2: Output
Write a program that outputs "Hello" on one line, and "World" on the second line, using
trap 101.
Problem 5: Primes
Write a program that reads a number from the user and then prints "Yes" if it is prime and
"No" otherwise.
Problem 6: Factorial
Write a program that reads a number from the user and prints out the factorial of that
number.
Example:
5
120
(Because 5! = 5 * 4 * 3 * 2 * 1)
Problem 7: High Low
Program the classic "High Low" and "Reverse High Low" games!