Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/22/19 in all areas

  1. 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; 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? }
    -1 points
×
×
  • Create New...