Exercise on the machine 1. update Member points and membership points on the machine

Source: Internet
Author: User

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 ();
}
}
}

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.