info@meritcampus.com    +91-85006-22255
...
`

### Weekend Hack - 1 - 19 Jan 2013 - Rs. 150 has these questions

Assuming that there are 6 million facebook users and each having 125 likes, which data type would you use to store the total number of likes on facebook?
 A. int B. long C. float D. double

Print Possible Ages Of Children

Write a program to print all the possible ages given the number of children and product of their ages. The possibilities should be sorted as shown below. Use System.out.print or System.out.println for printing.
Input (Integer, Integer) Printed Output
Number = 1, Product = 6 `6`
Number = 2, Product = 3 `1 3`
Number = 3, Product = 24 `1 1 241 2 121 3 81 4 62 2 62 3 4`
Number = 3, Product = 12 `1 1 121 2 61 3 42 2 3`
Number = 2, Product = 72 `1 722 363 244 186 128 9`
``` class PrintPossibleAgesOfChildren {    public static void main(String s[])    {        printPossibleAges(3, 24);    } public static void printPossibleAges(int numberOfChildren, int productOfTheirAges) { //Write a code here to print all the possible ages of children. Use System.out.println or System.out.print for printing. } //If required, write any additional methods here } ```