1. Write a program sort3.toy that reads in three integers from standard input and punches them out to standard output in ascending order.
2. Write a program powers2.toy that punches to standard output all of the positive powers of 2 that can be represented in a two’s complement TOY word.
3. Write a program sum_1-n.toy that reads in an integer n from standard input and punches out the sum 1 + 2 + 3 + ... + n.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here