using System;
using System.Collections.Generic;
namespace MyCompiler {
class Program {
public static void Main(string[] args) {
//Not the correct solution
//int[] arr = {2,3};
int[] arr = {2, 4, 5};
List<int> listSubset = new List<int>();
int n = 2;
listSubset.Add(0);
for(int i=0;i<arr.Length;i++){
listSubset.Add(arr[i]);
Console.WriteLine("When in the loop");
Console.WriteLine(string.Join(",",listSubset));
for(int j=0 ; j < arr.Length;j++){
//if(i!=j){
listSubset.Add(arr[i]+arr[j]);
//}
}
}
Console.WriteLine("After the loop");
Console.WriteLine(string.Join(",",listSubset));
Console.WriteLine("Hello world!");
}
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: