You don't need trial and error. Start by setting x = 1, 2, 3... and find values for y. If the y you get is a positive integer, you have a solution.
On Sun, Aug 28, 2011 at 5:46 PM, sivaviknesh s <sivavikne...@gmail.com>wrote: > *Find the number of solutions for 3x+4y=60, if x and y are positive > integers.* > > Is there any standard method for solving these type of ques ..or only trial > and error ??? > > -- > Regards, > $iva > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Shuaib http://www.bytehood.com -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.