Jump to content

Salut! Am nevoie de ajutor(c#)

Recommended Posts

public class Program
        public static void Main(string[] args)
            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;
                Console.WriteLine("Number of elements is " + i.ToString());
                for(int j = 0; j < i; j++)
                    Console.WriteLine("Elements are: " + j);

//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?

  • Downvote 1

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...