2013年4月29日

第十六节 流程控制 六

摘要: do while循环do{//循环体}while(循环条件);using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace HE{ class Program { static void Main(string[] args) { int i = 1; int sum = 0; do { sum = sum + i; ... 阅读全文

posted @ 2013-04-29 19:55 杨柳清枫2012 阅读(154) 评论(0) 推荐(0)

第十五节 流程控制 五

摘要: 循环结构(while语句)while(循环条件){//循环体}计算1+2+3...+100的和。using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace HE{ class Program { static void Main(string[] args) { int i = 1; int sum=0; while (i<= 100) { ... 阅读全文

posted @ 2013-04-29 19:11 杨柳清枫2012 阅读(118) 评论(0) 推荐(0)

导航