新西兰天维网社区

标题: 请教编程高手... [打印本页]

作者: wangyiyang    时间: 2009-10-1 02:46:44     标题: 请教编程高手...

YOU MUST USE LOOPS IN YOUR ANSWERS TO THESE QUESTIONS.
QUESTION 1
Start a new C# console application project, h:\Question1.
Put your name and the date in a header in the source code.
Write a loop that will display the numbers from 10 to 0 in order.
Example:
10 9 8 7 6 5 4 3 2 1 0


QUESTION2
Start a new C# console application project, h:\Question2.
Put your name and the date in a header in the source code.
Write code that will:
• Allow a student to record the total marks (%) obtained in each of the 8 papers
taken in a university year.
• Report the highest, lowest and average marks from those 8 papers.1
Example:
If the student entered marks of 52, 66, 83, 69, 74, 48, 59 and 65
Your highest mark was 83
Your lowest mark was 48
Your average mark was 64.5%

请问哪位高手能帮忙用visual studio帮忙看下这两道题怎么做....感谢.....
作者: 恶贯满盈    时间: 2009-10-1 07:53:38

不知道~~  你学的是c 还是c++呀?
作者: wangyiyang    时间: 2009-10-1 09:10:49

学的是C....
作者: ctkhai    时间: 2009-10-1 15:27:31

是C# 吧, 第二题让你用c# console

楼主可以参考 http://www.softsteel.co.uk/tutorials/csharp/lesson9.html
作者: xyz1234    时间: 2009-10-1 17:15:52

easy.........
作者: wangyiyang    时间: 2009-10-1 20:30:41

5# xyz1234


呃...那您能帮下忙么?




欢迎光临 新西兰天维网社区 (http://bbs.skytrade.co.nz/) Powered by Discuz! X2