postheadericon Write a shell script to accept numbers and perform addition, subtraction, division and multiplication.


echo "Enter Number 1 : "
read a
echo "Enter Number 2 : "
read b

ans=`expr $a + $b`
echo "Addition : " $ans

ans=`expr $a - $b`
echo "Subtraction : " $ans

ans=`expr $a / $b`
echo "Division : " $ans

ans=`expr $a \* $b`
echo "Multiplication : " $ans

2 comments:

Unknown said...

This blog is very useful and unique

7 tips to start a career in digital marketing

“Digital marketing is the marketing of product or service using digital technologies, mainly on the Internet, but also including mobile phones, display advertising, and any other digital medium”. This is the definition that you would get when you search for the term “Digital marketing” in google. Let’s give out a simpler explanation by saying, “the form of marketing, using the internet and technologies like phones, computer etc”.

we have offered to the advanced syllabus course digital marketing for available join now

more details click the link now

[url]https://www.webdschool.com/digital-marketing-course-in-chennai.html[/url]

Unknown said...

Web designing trends in 2020

When we look into the trends, everything which is ruling today’s world was once a start up and slowly begun getting into. But Now they have literally transformed our lives on a tremendous note. To name a few, Facebook, WhatsApp, Twitter can be a promising proof for such a transformation and have a true impact on the digital world.

we have offered to the advanced syllabus course web design and development for available join now

more details click the link now

[url]https://www.webdschool.com/web-development-course-in-chennai.html[/url]

Total Pageviews

© BipinRupadiya.com. Powered by Blogger.