Hello, strange, so strange, I am still think it is 0 not 4
1.public int Evaluate(s,t){
2.{
3.if(s==0 || t==0)
4.return 0;
5.}
6.else if{
7.y=Evaluate(s,t-1); // this
8.return s+y;
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: Lazyboy Search: Search took 0.02 seconds.
Results 1 to 4 of 4
|
Click Here to Expand Forum to Full Width |