From: pharrington Date: 2009-08-07T13:10:05+09:00 Subject: Re: What is wrong with this program? 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.