tag:blogger.com,1999:blog-8712770457197348465.post2862890584261634060..comments2024-03-28T02:47:19.159-07:00Comments on Javarevisited: How to calculate GCF and LCM of two numbers in Java? Examplejavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8712770457197348465.post-630392974059830212017-09-30T07:46:44.935-07:002017-09-30T07:46:44.935-07:00Ahh, my mistake. Your solution is right. I was usi...Ahh, my mistake. Your solution is right. I was using int instead of long. :)Rahulhttps://www.blogger.com/profile/15816561258864720439noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-29141536322751891662017-09-30T07:34:19.191-07:002017-09-30T07:34:19.191-07:00Hi Javin
Above solution are good for small inputs ...Hi Javin<br />Above solution are good for small inputs but it will fail if we pass larger values.Rahulhttps://www.blogger.com/profile/15816561258864720439noreply@blogger.com