C Programming and Technical Programming Technical

write a prog such that take 'n' as input and print the o/p.
for example if n=3 then o/p is as folows
1
2*2
3*3*3
3*3*3
2*2
1
and if n=6, then
1
2*2
3*3*3
4*4*4*4
5*5*5*5*5
6*6*6*6*6*6
6*6*6*6*6*6
5*5*5*5*5
4*4*4*4
3*3*3
2*2
1

Read Solution (Total 10)

C Other Question

is string is different from arrays class bool test
{
public static void main(string[]args)
{
int result=0;
Boolean b1=new Boolean("true");
Boolean b2=new Boolean("true");
if(b1 equals(b2))
result=result+1000;
system.out.println("result="+result);
}
}


what will be output of this code...
a) result=0
b) result=1000
c) result=2000
d) none