Exercise on the machine 1. update Member points and membership points on the machine
Using System;
Using System. Collections. Generic;
Using System. Linq;
Using System. Text;
Using System. Threading. Tasks;
Namespace PointsApp
{
Class Program
{
Static void Main (string [] args)
{
Int [] points = new int [5];
Int [] newPoints = new int [5];
Console. WriteLine ("Enter the five-member points :");
For (int I = 0; I <points. Length; I ++)
{
Console. WriteLine ("no." + (I + 1) + "Member points :");
Points [I] = Convert. ToInt32 (Console. ReadLine ());
}
For (int I = 0; I <points. Length; I ++)
{
NewPoints [I] = points [I];
NewPoints [I] = points [I] + 500;
}
Console. WriteLine ("\ n no. \ t historical credits \ t New Year credits ");
For (int I = 0; I <points. Length; I ++)
{
Console. WriteLine (I + 1) + "\ t" + points [I] + "\ t" + newPoints [I]);
}
Console. ReadLine ();
}
}
}