SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. even = {} ;
  2. i = 1;
  3. While[i <= 5, Print[i];If[EvenQ[i], AppendTo[even, i]]; i++]
  4.  
  5. even
  6. (*{2, 4}*)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top