Cruz Castillo

Generation

generate functionFri, 26 May 2023

Using while loop, code to the serie 0, 1, 1, 2, 3, 5, 8, 13, 21, 34

Script let a = 0; let b = 1; let c = 0; let result = ''; while (c <= 10) { result += a + ","; a = b; b = c; c = a + b; }

Want to kickstart your project?Use the new AI Studio to create your code