If tomorrow never comes

The meaning of life is creation,which is independent an boundless.

导航

2009年4月8日

摘要: 1、求两个正整数的最大公约数与最小公倍数 【提示】: (1)求两个非负正数m和n(要求m>n)的最大公约数可以使用辗转相除法。其算法描述为: 1)m除以n得到的余数为r(0using System;using System.Collections.Generic;using System.Text;namespace DivisorMutiple{ class Program { ... 阅读全文

posted @ 2009-04-08 19:35 Brucegao 阅读(1037) 评论(0) 推荐(1) 编辑

摘要: 两个正正数的最大公约数用程序算法来求解是算法里面比较入门的东西,这是我昨天试着写的,还望指正。Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/*Author:Bruce * Time:2009-4-7pm * Function:obtain the ... 阅读全文

posted @ 2009-04-08 17:08 Brucegao 阅读(304) 评论(0) 推荐(0) 编辑