Structure Query Language, C programming, Java, Servlet, Jsp, Unix

Wednesday, 22 February 2012

Accept numbers and perform addition, subtraction, division and multiplication.


echo "Enter First Number := "
read a
echo "Enter Second Number := "
read b
ans=`expr $a + $b`
echo "Addition is :=" $ans

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

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

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

6 comments:

  1. Have you been thinking about the power sources and the tiles whom use blocks I wanted to thank you for this great read!! I definitely enjoyed every little bit of it and I have you bookmarked to check out the new stuff you post
    microsoft azure training in bangalore
    rpa training in bangalore
    best rpa training in bangalore
    rpa online training

    ReplyDelete
  2. Thank you so much for a well written, easy to understand article on this. It can get really confusing when trying to explain it – but you did a great job. Thank you!
    python Course in Pune
    python Course institute in Chennai
    python Training institute in Bangalore

    ReplyDelete
  3. i do agree your blog for quiz programming concepts, which is very helpful to grow up your knowledge. keep sharing more
    aws training in chennai | aws training in annanagar | aws training in omr | aws training in porur | aws training in tambaram | aws training in velachery

    ReplyDelete
  4. Web design encompasses many different skills and disciplines in the production and maintenance of websites. The different areas of web design include web graphic design; user interface design; authoring, including standardised code and proprietary software; user experience design; and search engine optimization.
    Java training in chennai

    python training in chennai

    web designing and development training in chennai

    selenium training in chennai

    digital-marketing training in chennai

    ReplyDelete