@atul in case you are considering indexing from 1 then your for loop shud
be *for(i=1.... *.
Its more obvious this way that you are indexing from 1.....(Although
doesn;t makes any difference to the overall objective)


Saurabh Singh
B.Tech (Computer Science)
MNNIT
blog:geekinessthecoolway.blogspot.com



On Sat, Dec 31, 2011 at 8:25 PM, atul anand <[email protected]> wrote:

> @Lucifier :
>
> i wrote  for (int i=0; i <= 9; ++i) because i was considering index from
> 1 to n
> not 0 to n-1;
>
> you are considering from 0 to n-1. so both are correct.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to