Generation

generate functionMon, 27 Mar 2023

Generar la siguiente serie 1,0,1,0,1,0,1

public static void main(String[] args) { int i = 0; while (i < 7) { if (i % 2 != 0) { System.out.println(1); } else { System.out.println(0); } i++; } }

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