C#流程控制
满山猴子
这个作者很懒,什么都没留下…
展开
-
C#用一百元买一百只鸡,公鸡5元一只,母鸡3元一只,小鸡1元三只保。证总共花了100元,遍历所有能买鸡的情况,求买鸡数为100的情况 案例
using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace 流程控制{ public partial class Form1 : Form { public For...原创 2019-11-29 12:37:30 · 2834 阅读 · 0 评论 -
C#.猴子每天吃总数一半多一个桃子,第n天只剩下一个桃子。用户输入天数n,开始时桃子的总数 案例
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System....原创 2019-11-29 12:35:22 · 786 阅读 · 0 评论 -
C# 3个可乐瓶可以换一瓶可乐,现在有364瓶可乐。问一共可以喝多少瓶可乐,剩下几个空瓶! 案例
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System....原创 2019-11-29 12:32:39 · 1380 阅读 · 0 评论 -
C# 一球从h米高度自由落下,每次落地后反跳回原高度的一半;再落下,求它在 第n次落地时,共经过多少米?第n次反弹多高?题型案例
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System...原创 2019-11-29 12:26:16 · 4603 阅读 · 0 评论