using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
int[] ints = { 0, 10, 100, 1000, 1000000 };
string i =Console.ReadLine();
int num = int.Parse(i);
foreach (int arr in i)
{
Console.WriteLine(arr);
}
}
}
}
Using the for each loop i want to search an element in an array please help me. Thanks in advance.
Manoj BhoirPosted Jun 9, 2015, 9:36 AM
Micheal JohnPosted Jun 10, 2015, 2:52 AM
Rajeesh MenothPosted Jun 10, 2015, 12:13 AM
Pradeep ShetPosted Jun 9, 2015, 1:41 PM
Inathi GqolaPosted Jun 9, 2015, 10:08 AM
Pankaj Kumar ChoudharyPosted Jun 9, 2015, 9:54 AM
Michal HabalcikPosted Jun 9, 2015, 8:45 AM