You need to sign in to do that
Don't have an account?

can any one help an interview scenario
hello ,i need a code whose o/p will be {1,1,2,3,5,8,13,21,34,55}
loop should rotate 10 times
this scenario add two num every time when loop rotates;
plzzzzzzzz thanks
loop should rotate 10 times
this scenario add two num every time when loop rotates;
plzzzzzzzz thanks
All Answers
integer r=1;
interger j=1;
integer l=r+j;
for(integer i=0,i<10,i++){
list<integer> k=new list<integer>();
k.add(l);
}
system.debug(''+k);