/******************************************************************************
Online C# Compiler.
Code, Compile, Run and Debug C# program online.
Write your code in this editor and press "Run" button to execute it.
*******************************************************************************/
using System;
class HelloWorld {
//عملية تتلقى مصفوفة رموز كمعامل
public static void PrintScore(string[] StudentName)
{
for (int i = 0; i < StudentName.Length; i++)
{
Console.WriteLine(StudentName[i]);
}
Console.Write("This is PrintNames.");
}
//عملية تتلقى مصفوفة رموز كمعامل
public static void PrintNames(string[] StudentName)
{
for (int i = 0; i < StudentName.Length; i++)
{
Console.Write(StudentName[i] +", ");
}
Console.Write("This is PrintNames.");
}
public static void CreateNames()
{
}
//عملية تتلقى مصفوفة رموز كمعامل
public static void PrintChar(char[] x)
{
for (int i = 0; i < x.Length; i++)
{
Console.WriteLine(x[i]);
}
}
//عملية تطبع مصفوفة اعداد صحيحة
public static void PrintInt(int[] N)
{
for (int i = 0; i < N.Length; i++)
{
Console.WriteLine("N[{0}]:{1}",i, N[i]);
}
}
// عملية تعيد مصفوفة رموز
public static char[] GiveArray()
{
char[] letters = { 'A', 'B', 'C', 'D', 'E' };
return letters;
}
public static void Test01()
{
// استدعاء عملية تعيد مصفوفة رموز
char[] r =GiveArray();
//عملية تتلقى مصفوفة رموز كمعامل
PrintChar(r);
}
public static void Test02()
{
int[] N = { 35,1,18, 3,12,9, 11};
//int[] M = { 325,11,148, 3,126,99, 101,148, 3,126,99, 101};
Fill(N, 2, 5, 7);
PrintInt(N);
}
public static void Fill(int[]arr, int from, int to, int val )
{
//???
//صحة المعطيات
//تعويض القيمة المطلوبة بالمحلات المطلوبة
}
static void Main() {
//Test01();
Test02();
}
}