C# help
SebiDragu (1)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;

namespace Rextester
{
public class Program
{
public static void Main(string[] args)
{
math1();
Console.WriteLine("Hello, world!");
}
public static void math1()
{
Console.WriteLine("Enter a number: ");
int n = Int32.Parse(Console.ReadLine());
int[] numere = new int [n];

        for(int i = 0; i <= numere.Length - 1; i++)
        {
            n = numere[i];
            Console.WriteLine("Number of elements is " + i.ToString());
            for(int j = 0; j < i; j++)
            {
                Console.WriteLine("Elements are: " + j);
            }
        }
        Console.ReadLine();
    }

//First I wanna type "5" for example to set 5 elements and then add them and in final I want them all to show reversed.. Can you help me please?
}
}

You are viewing a single comment. View All
Answered by heyitsmarcus (287) [earned 5 cycles]
View Answer
SebiDragu (1)

@heyitsmarcus Thank you so much, Marcus! That's exactly what I needed. I gotta do a lot of practice now.. thanks again!!