+ 3
PseudoCode
Does the last iteration "count" in pseudo code? I mean, in a loop for, with a step =1, is " i " going from 1 to n"? Does the n-value count? Or does it stop at "n-1" like in the python language? Sorry If it's not clear
5 odpowiedzi
+ 5
I doubt there's just one set of rules for writing pseudo code.
The meaning of pseudo code is mostly to fix an idea on paper without writing too much.
In cases where it's important, I'd likely write the -1.
+ 1
Thanks to both of you. As there is no convention it's interesting to be aware of what people think of the situation
0
Hi
0
initialize char c set c= a print "%d",a