iteration loop by using for and while loop - Wokwi ESP32, STM32, Arduino Simulator