Implement the following warmup problems in both Java and C. These warmup programs cover: general algorithms, single and double dimension arrays, singly linked lists, and binary trees.
See new features of Java 1.5 and the following C tutorials: C Language Tutorial, C Programming, C Programming Tutorial, Programming in C, and stdio.h
22 11 34 17 52 26 13 40 20 10 5 16 8 4 2 1
Sample Input Sample Output
1 10 1 10 20
100 200 100 200 125
201 210 201 210 89
900 1000 900 1000 174