Hello,

Sign up to join our community!

Welcome Back,

Please sign in to your account!

Forgot Password,

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask a question.

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

  • 0
Homework Help Staff
Teacher

Shell script to find LCM of the given two numbers

Shell script to find LCM of the given two numbers

Related Questions

3 Answers

  1. Shell program to find LCM and hcf of two no.s

    tput clear

    echo “Enter first no”

    read a

    echo “Enter 2nd no”

    read b

    p= ‘expr $a * $b’

    while [$b -ne 0]

    do

    r= ‘expr $a % $b’

    a=$b

    b=$r

    done

    LCM = ‘expr $p / $a’

    echo “LCM = $LCM”

    echo “Hcf = $a”

You must login to add an answer.