FEEL FREE TO SOLVE YOUR INFORMATION TECHNOLOGY PROBLEMS
please post qbasic program to find lcm only of given integers by using for next loop
once try this:CLSINPUT "Enter the first number: ", a, bc = ad = bFOR i = b TO b t = a MOD b a = b b = tNEXT il = (c * d) / bPRINT "LCM is "; lEND
How does the q basic program finding hcf and lcm of two number works. Show me method. Take a =5 and b=3. Plz el reply fast
Note: Only a member of this blog may post a comment.
please post qbasic program to find lcm only of given integers by using for next loop
ReplyDeleteonce try this:
DeleteCLS
INPUT "Enter the first number: ", a, b
c = a
d = b
FOR i = b TO b
t = a MOD b
a = b
b = t
NEXT i
l = (c * d) / b
PRINT "LCM is "; l
END
How does the q basic program finding hcf and lcm of two number works. Show me method. Take a =5 and b=3. Plz el reply fast
ReplyDelete