Tópico Pls solve tha program in java..
3 mensagens · –K import java.util.Scanner; public class EvenRange { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("Enter staring value: "); int start = sc.nextInt(); System.out.print("Enter ending value: "); int end = sc.nextInt(); for (int i = start; i <= end; i++) { if (i % 2 == 0) { System.out.println(i); } } } } For odd numbers, reverse the condition in the if statement.P