how to tranlate psuedo code

how can i translate this psuedo code into a c++ program?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Set a Boolean variable "first" to true.

     While input value is not negative

           If first is true

                If input value is positive 

                Set the minimum to the input value.

                Set first to false.

         Else

                Output 0 is not a valid input.

           Else 

                If input value is positive
                       If the input value is less than the minimum

                     Set the minimum to the input value.

         Else

                Output 0 is not a valid input.

            

If first is true

     Output no valid numbers were input so there is not a minimum value.

Else

            Output the minimum value.
Last edited on
Just follow the instructions.
1
2
//Set a Boolean variable "first" to true.
bool first = true;


1
2
//While input value is not negative
while (inputValue < 0)


... and so on.
Thank you I am very new to writing code and I have no idea what this all should look like.
Topic archived. No new replies allowed.