using System;
public class Program
{
public static void Main()
int[] nums = {2, 5, 7, 7, 5, 9, 2, 3};
//Output = 2,5,7
//Declare an outer for loop
for (int i = 0; i < nums.Length; i++) {
//declare another for loop(inner)
for (int j = i+1; j < nums.Length; j++) {
//compare both the arrays using if condition
if(nums[i]==nums[j]) {
Console.WriteLine(nums[i]);
}
Console.WriteLine("Hello World");