From: Eric Hodel Date: 2009-08-07T14:29:49+09:00 Subject: Re: What is wrong with this program? On Aug 6, 2009, at 21:10, pharrington wrote: > On Aug 6, 11:51 pm, Prateek Agarwal wrote: >> I don't understand what is wrong with this program. It gives an >> error: >> 'findarea' undefined local variable or method 'area_of_triangle' >> Both 'findarea' and 'area_of_triangle' are clearly defined. >> >> Attachments:http://www.ruby-forum.com/attachment/3933/Q3a1.rb >> >> -- >> Posted viahttp://www.ruby-forum.com/. > > Prateek, > > You post alot of basic troubleshooting questions on the list. This > really is something you need to learn to do on your own when > programming, as no one gets their code right the first time through > the keyboard. > > But for this, a simple Ctrl+F through your own code will give you the > answer. Also, seems to be homework based on the filename.