(a) how to store the values in array
(b) how to get values from array
Array
DEFINATION:
collection of similar data type with unique decleration
ARRAY PROGRAM
(a)how to store the value in array?
using System;
class Program
{
public static void Main()
{
int[] a = { 1, 2, 3 }; (it can store values in array)
for(int c = 0; c<3;c++)
(b) how to get values from array
Console.WriteLine(a[c]);
}
}
(b) how to get values from array
Array
DEFINATION:
collection of similar data type with unique decleration
ARRAY PROGRAM
(a)how to store the value in array?
using System;
class Program
{
public static void Main()
{
int[] a = { 1, 2, 3 }; (it can store values in array)
for(int c = 0; c<3;c++)
(b) how to get values from array
Console.WriteLine(a[c]);
}
}
1 comments:
Great readingg
Post a Comment