登录
首页 » 算法 » 空心数字梯形

空心数字梯形

于 2023-02-21 发布 文件大小:160.28 kB
0 172
下载积分: 2 下载次数: 1

代码说明:

输入行数 n 和首数字字符,在屏幕上输出由数字围起的高和下底宽度均 n 的空心梯形。 要求:输出的数字是循环的,即输出数字 9 后再输出的数字是 0。输入:  行数n 和首字符输出:    空心梯形例:输入:5 5输出:5 6 7 8 9 0 1 0 9 8 7 6 5 6 6 7 7 8 8 9 0 1 0 9

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 对数回归方程logarithmregress.cs方程模型y = * LN…
    对数回归方程 LogarithmRegress.cs 方程模型为 Y=a*LnX+b public override double[] buildFormula() 得到系数数组,存放顺序与模型系数相反,即该数组中系数的值依次是b,a。 public override double forecast(double x) 预测函数,根据模型得到预测结果。 public override double computeR2() 计算相关系数(决定系数),系数越接近1,数据越满足该模型。 -Logarithmic regression equation LogarithmRegress.cs equation model for Y = a* LnX+ Bpublic override double [] buildFormula () get coefficient array, the storage order and model coefficients contrary, that is, the array is followed by the value of coefficient b, a. public override double forecast (double x) prediction function, according to the results of model prediction. public override double computeR2 () calculated the correlation coefficient (determination coefficient), coefficient of the closer one, the data satisfy the model more.
    2022-08-31 23:15:03下载
    积分:1
  • you please enlighten!
    大家请多指教-you please enlighten!
    2022-03-03 11:24:30下载
    积分:1
  • C语言实践
    通过一个简单的实例,实现一个C语言的经典算法,而且这个代码在我们实践中,也会经常用到,并将其进行模板话,这样就可以随时拿来使并可以将其封装成一个固有的库来实现
    2022-02-05 05:35:21下载
    积分:1
  • 特征值提取程序
    信号分解后进行特征值提取。包含均值、方根幅值、均方根值、最大值、标准差、偏斜度、峭度、峰值因子、裕度因子、波形因子、脉冲因子、方差等多种特征值,可以进行多个或者单个特征值的输出。在模式识别领域或者是振动噪声分析领域很有用处。
    2023-03-06 22:00:03下载
    积分:1
  • 传热学二维稳态C++程序
    单位长度为一。内外壁分别维持450度和50度。管道热导率1.05W/(m.k),求每米长管道热损失。
    2022-05-25 20:51:34下载
    积分:1
  • 椭圆拟合的误差,拟合点到椭圆心的距离减去拟合点对应在椭圆上的点到椭圆心的距离,有效分析椭圆拟合的误差问题,并让其在对话框中显示出来...
    椭圆拟合的误差算法,拟合点到椭圆心的距离减去拟合点对应在椭圆上的点到椭圆心的距离,有效分析椭圆拟合的误差问题,并让其在对话框中显示出来-The error ellipse fitting algorithm, fitting point to the ellipse center distance minus the corresponding fitting point on the ellipse to the ellipse center point of the distance, the effective analysis of the error ellipse fitting problem, and let it be shown in the dialog box
    2022-03-18 15:29:28下载
    积分:1
  • labview二维数组排序
    很多工程应用中labview一位数组排序非常简单,但是二维数组排序却很费脑筋,作者以前调项目写的小饭粒拿来分享分享
    2022-05-28 23:31:42下载
    积分:1
  • VB function of the body and optimization including 0.618 search, not derivative...
    VB的函数体及优化包括0.618搜索、Brent不导数法、Brent导数法、多函数Hill单纯形法、多函数作为准则
    2022-11-23 14:35:04下载
    积分:1
  • 这是一个随机生成小学加减的程序
    应用背景随机生成指定参与运算因子数和题数的小学加减法练习题。参与运算的因子和顺序运算过程中的结果以及最终结果均小于或等于20.适合小学一年级及以下。关键技术void _tmain(int argc, _TCHAR* argv[]){ srand(time(0)); int m, n; b = rand() % 20 + 1; std::cin >> m >> n; //输入因子数和题数 for (int i = 0; i < n; b = rand() % 20, std::cout
    2022-06-02 01:45:26下载
    积分:1
  • ViBe背景检测、前景检测、运动检测
    对源代码做了少量修改,源代码来源忘记了; 代码为ViBe背景检测算法,也可用来做前景检测或者运动检测相关的内容; 检测效果较好,可通过参数进行调节 样本更新率等。
    2022-01-22 08:38:17下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载