Pseudo code and algorithm help please??

Take 2 numbers from user n operator (+.-,*,division) , perform requested operation n display result.
1. declare two variables(a,b) of type int(or anything u want)
2. declare an char variable n
3. prompt user to input value for a and b
4. store the values in respective variables
5. prompt user to input the operator(+,-,*,/)
6. store the value in n
7. declare an variable result of type int
7. if(n=='+')
else if(n=='-')
else if(n=='*')
else if(n=='/')
8. output the result to the screen
9. end
Thanks alot. :)
you are welcome
please mark as solved
Topic archived. No new replies allowed.