self Maths Puzzle

Q. Find the next term
1,2,4,9,125,....

Read Solution (Total 3)

self Other Question

HE
*IS
___
HUB
OF
___
LAB
Q. The below Java program prints the numbers from 1 to 50. But for multiples of three print "DNA" instead of the number and for the multiples of five print "RNA". For numbers which are multiples of both three and five print "ATGC". Please identify the three bugs in the code and suggest how they can be resolved.

public class SeqTest {

public static void main(String args[]) {

for(int i = 1; i