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
MATTHEWBECHTEL (122)

Can you provide the link?

MATTHEWBECHTEL (122)
  1. That isn’t a repl? 2. If you want to do simple adding why don’t you just use python and import math? It shouldn’t be that hard and I’m pretty sure that you can also reverse the number with python.
    @SebiDragu