Português
Abrir no Telegram

Tópico Pls solve tha program in java..

3 mensagens · –
P
Pls solve tha program in java.. Even/odd no's between given range
  1. 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.

Um feed público aberto do índice de busca ChatCrawler — “o Google do Telegram público”; atualizado à medida que a comunidade é rastreada. Horários em UTC.

Somente conteúdo público, API oficial do Telegram. Sobre · Perguntas frequentes · Limites do índice · Remover uma página · Catálogo · Busca · Como calculamos