eheheh! pag practical ni namo... nakapa run man ko.. pero edbug lang hap?!?!?
Page 1 of 1
eheheh! pag practical ni namo... nakapa run man ko.. pero edbug lang hap?!?!?
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string[] aryNames = new string[5];
aryNames[0] = "Sarah";
aryNames[1] = "Fergie";
aryNames[2] = "Sheila";
aryNames[3] = "Che";
aryNames[4] = "Fritz";
Console.WriteLine(ViewNames(aryNames));
Console.Read();
}
public static string ViewNames(string[] aryNames) {
string view = "";
for (int index = 0; index < aryNames.Length; index++) {
view = view + aryNames[index] + "\n";
}
return view;
}
}
}
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string[] aryNames = new string[5];
aryNames[0] = "Sarah";
aryNames[1] = "Fergie";
aryNames[2] = "Sheila";
aryNames[3] = "Che";
aryNames[4] = "Fritz";
Console.WriteLine(ViewNames(aryNames));
Console.Read();
}
public static string ViewNames(string[] aryNames) {
string view = "";
for (int index = 0; index < aryNames.Length; index++) {
view = view + aryNames[index] + "\n";
}
return view;
}
}
}
espionage- Number of posts : 3
Registration date : 2008-07-17
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|