+44(0) 1234 567 890 info@domainname.com

Monday 6 January 2014

How to apply Array in C#.net Example

09:03

Share it Please

task no


Write a program that:Reads 10 numbers, one by one, using a for loop.Use switch-case statement to do following: If the number is between 1 and 5, store it in one array, if the number is between 6 and 10, store it in a second array, if the number is between 11 and 15 store it in a third array. In all other cases display a message saying “The number is out of range! Enter a number between 1 and 15”.     In the end, display the elements of each of the three arrays with some type of heading


source code
















1 comments:

  1. I Read your blog and get great information for programming language.

    ReplyDelete