Need algorithm for this pseudo code... Please help.

Output "enter 1st digit"
2- input x
3-output "enter 2nd digit"
4-input y
5-if operator =+ then x+y=z
6-else if operator = - then x-y=z
7-else if operator =* then x*y=z
8-else operator =/ then x/y=z
9-output "result is"
10- output z
Last edited on
(dont get me wrong but) this already looks as pseudo code to me :)
Pseudo code is next stage of knowing algorithm.
If and once you know the syntax of cin, cout and if-else in C++ you are set (besides knowing how to have main function and declare variables)
Topic archived. No new replies allowed.