Home Qbasic Program Write a qbasic program to display the LCM of any two input numbers. Write a qbasic program to display the LCM of any two input numbers. By -ALK 8:22:00 AM 0 CLS INPUT "Enter any two numbers ";a , b FOR j=1 TO a IF a MOD j=0 AND b MOD j=0 THEN Hcf=j END IF NEXT j LCM=(a*b)/Hcf PRINT "LCM= ";LCM END Tags: Qbasic Program Facebook Twitter Whatsapp Newer Older
Your suggestions / query encourages more to share things like this. Feel free to comment in below box.
What ever you think about it...