this is not probability purely...there is an "else" in between :) why don't you write the program and test it out yourself :)
Best Regards Ashish Goel "Think positive and find fuel in failure" +919985813081 +919966006652 On Tue, Dec 21, 2010 at 6:52 PM, Ankur Khurana <[email protected]>wrote: > ashish , nobody is fighting here , but are u sure you are clear on > your probability concepts ? independent events do multiply . > what is the probability that when we toss three coins , we get all three > heads ? > > On Tue, Dec 21, 2010 at 6:45 PM, Ashish Goel <[email protected]> wrote: > > Dear Shashank > > > > What will get executed if A<B and C<D, then will foo2 get executed? NO > > In worst cast(when A<B and C<D happens at same time i.e.25%), the foo2 fn > > will get executed 50% i.e. 2500 times > > Don't get me wrong, but closed mind is one of the reason people get > > rejected. > > Best Regards > > Ashish Goel > > "Think positive and find fuel in failure" > > +919985813081 > > +919966006652 > > > > > > On Tue, Dec 21, 2010 at 5:31 PM, bittu <[email protected]> > wrote: > >> > >> @ashish..... u r getting wrong if & else makes complete unit so if 1 > >> fails other executes..no doubt in these..its not tough as much as u > >> taking it.... > >> > >> > >> what ii think some guys r right & i got same solution..i don't thinsg > >> to xplain becoz, kathir,ankur has xplained same... & answer will be > >> > >> 2812 > >> > >> > >> Thanks & Regards > >> Shashank Mani Narayan "Don't B Evil U can Earn While U Learn" > >> Birla Institue of Technology,Mesra > >> Computer Science & Engineering > >> Cell +91-9740852296 > >> > >> -- > >> 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]<algogeeks%[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]<algogeeks%[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]<algogeeks%[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.
