all about smartphone technologies we discuss here, ranging from specifications and prices, how to fix hp and we provide a lot of applications and games

C# Program which copies the values of one array in second array in reverse order

C# Program which copies the values of one array in second array in reverse order - welcome to our blog that presents a very complete information is Tech Phone ok now we will discuss the information you are seeking, may I guess if you are looking for information on C# Program which copies the values of one array in second array in reverse order if properly come please continue reading until the end, we also provide other information, do not forget to get around:

informations : C# Program which copies the values of one array in second array in reverse order
Full link : C# Program which copies the values of one array in second array in reverse order
Article Csharp, Article programs,

You can also see our article on:


C# Program which copies the values of one array in second array in reverse order

C# Program which copies the values of one array in second array in reverse order

Program Statement:
Write a program which copies the values of one array in second array in reverse order

Solution:
 public class reverse
{
int n;
public void rev()
{
Console.Write("\n\t\tEnter length of array : ");
n = Convert.ToInt32(Console.ReadLine());

int[] arr1 = new int[n];
int[] arr2 = new int[n];

Console.WriteLine("\n\t\tEnter {0} numbers : ", n);
for (int x = 0; x < n; x++)
{ arr1[x] = Convert.ToInt32(Console.ReadLine()); }

Console.Write("\n\t\tReversed element : ");
for (int y = n - 1; y >= 0; y--)
{ arr2[(n - 1) - y] = arr1[y]; }
for (int z = 0; z < n; z++)
{ Console.Write(" {0}", arr2[z]); }
Console.WriteLine("\n");
}
}




Articles C# Program which copies the values of one array in second array in reverse order already been discussed

A few information about the C# Program which copies the values of one array in second array in reverse order, hopefully can provide benefits to all of you.

You're reading an article C# Program which copies the values of one array in second array in reverse order and this article has a link to https://mastispotgroup.blogspot.com/2014/01/c-program-which-copies-values-of-one.html to revel book mark. Hopefully this article could be useful, do not forget to look for information on obtaining the phone tech blog.

Tag : , ,
Share on Facebook
Share on Twitter
Share on Google+
Tags :

Related : C# Program which copies the values of one array in second array in reverse order

  • C# Program to Print different Shapes | Triangle | half triangleC# Program to Print different ShapesProgram Statement:Write a program using for loop which prints the following output on the screen.************************************ ...
  • C# Program to print Rectangle $C# Program to print Rectangle $Program Statement:Write a program using for loop which prints the following output on the screen.$$$$$$$$$$$$         ...
  • Program to Print Armstrong numbers in C#C# Program to Print out all Armstrong numbers between 1 and 500Program Statement:Write a program to print out all Armstrong numbers between 1 and 500. If sum of cubes of ...
  • C# Program for Array solving problemsC# Program for Array solving problemsProgram Statement:Write a function which takes four arrays of same size as arguments; array1, array2, array3, array4. The function w ...
  • program to Print Sum of factorial Series in C#C# program to Print Sum of factorial SeriesProgram Statement:Write a program to display the sum of the following series.2/1! + 4/3! + 6/5! + 8/7! + 10/9! + . . . + n/(n- ...

0 komentar:

Posting Komentar