# Returns and pseudocode

**URL:** <https://forum.code.org/t/returns-and-pseudocode/35863>\
**Category:** AP Prep\
**Created:** [February 14, 2022, 4:58pm UTC](https://forum.code.org/t/returns-and-pseudocode/35863 "2022-02-14T16:58:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mreckling](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mreckling/32/4946_2.png) [@mreckling](https://forum.code.org/u/mreckling)\
**Post date:** [February 14, 2022, 4:58pm UTC](https://forum.code.org/t/returns-and-pseudocode/35863/1 "2022-02-14T16:58:22Z")

</div>

I am using Barron’s to review and found a few pseudocode questions like this:

 ![return example](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/5/571cc05bb0d67d007d0d73c3f5ffa5707a41883a.jpeg)

I am guessin this is incorrect… the return appears to be OUTSIDE of the procedure?  
I have searched on the College Board and do NOT see it like this ever and I know code does not work like this… just wanted to make sure.  
Thanks,  
Michelle

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [February 14, 2022, 5:39pm UTC](https://forum.code.org/t/returns-and-pseudocode/35863/2 "2022-02-14T17:39:06Z")

</div>

Yeah, return definitely needs to be inside the procedure. Good catch!
