@SebiDragu/

FluffyGorgeousLocus

C#

No description

fork
loading
Files
  • main.cs
  • main.exe
main.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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();
        }
        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?
    }
}