# UNIX script coding help?

**URL:** <https://community.unix.com/t/unix-script-coding-help/341023>\
**Category:** Shell Programming and Scripting\
**Created:** [March 24, 2014, 9:03pm UTC](https://community.unix.com/t/unix-script-coding-help/341023 "2014-03-24T21:03:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![renegade755](https://community.unix.com/letter_avatar/renegade755/32/6_22734026db12803ebb3e059622ac3534.png) [@renegade755](https://community.unix.com/u/renegade755)\
**Post date:** [March 24, 2014, 9:03pm UTC](https://community.unix.com/t/unix-script-coding-help/341023/1 "2014-03-24T21:03:00Z")

</div>

Unix script coding help?  
i am trying to write a code that will display following menu to user:  
(A) Add  
(B) Subtract  
(C) Multiply  
(D) Divide  
(E) Modulus  
(F) Exponentiation  
(G) Exit  
Then ask user for choice (A-F). After taking users choice ask user for two numbers and  
perform chosen operation on those two numbers. The program should keep asking  
for choice / numbers unless user chooses �G' for exit.

---

<div class="post-metadata">

**Author:** ![chacko193](https://community.unix.com/letter_avatar/chacko193/32/6_22734026db12803ebb3e059622ac3534.png) [@chacko193](https://community.unix.com/u/chacko193)\
**Post date:** [March 24, 2014, 9:06pm UTC](https://community.unix.com/t/unix-script-coding-help/341023/2 "2014-03-24T21:06:29Z")

</div>

What have you tried so far? Is this a homework question? If yes, there is a separate section for that.

---

<div class="post-metadata">

**Author:** ![renegade755](https://community.unix.com/letter_avatar/renegade755/32/6_22734026db12803ebb3e059622ac3534.png) [@renegade755](https://community.unix.com/u/renegade755)\
**Post date:** [March 24, 2014, 9:09pm UTC](https://community.unix.com/t/unix-script-coding-help/341023/3 "2014-03-24T21:09:08Z")

</div>

> [@chacko193](#):
>
> What have you tried so far? Is this a homework question? If yes, there is a separate section for that.

what section is it can you link it for me  
thank

---

<div class="post-metadata">

**Author:** ![chacko193](https://community.unix.com/letter_avatar/chacko193/32/6_22734026db12803ebb3e059622ac3534.png) [@chacko193](https://community.unix.com/u/chacko193)\
**Post date:** [March 24, 2014, 9:13pm UTC](https://community.unix.com/t/unix-script-coding-help/341023/4 "2014-03-24T21:13:22Z")

</div>

There is a section called "Homework" in home page. And no I cant link it for you, it needs additional information regarding the question.
