using System; public class Test { public static void Main() { // your code goes here int N = 3; int res = 0; for(int x=1; x<=N; x++) { res += x; } } }