ChatCrawlersearch across public Telegram Open the app
W

Web Development Bootcamp

сообщение · 2022-08-23 13:34 UTC
I
* Q1)input 2,3,4,3,5,1,7,2,5; Output ,2,3,5; */ import java.util.*; public class DuplicateNumber { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("enter the size"); int size = sc.nextInt(); int arr[] = new int[size]; for (int i = 0; i < size; i++) { arr[i] = sc.nextInt(); } for (int i = 0; i < size; i++) { for (int j = 0; j < size; j++) { if (i != j && arr[i] == arr[j]) { System.out.println("numbers are" + arr[i]); } } } sc.close(); } }

All messages on 23 August 2022 · Whole feed · оригинал в Telegram

Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog