Article View: pl.comp.lang.javascript
Article #49534Re: Algorytm Euklidesa
From: fronco
Date: Mon, 23 Nov 2009 21:38
Date: Mon, 23 Nov 2009 21:38
13 lines
1093 bytes
1093 bytes
> ... jak poprawnie napisaฤ ten skrypt ...
function NWD(m,n){
while (n != m){
if(m > n){
m = m - n;
}
else{
n = n - m;
}
}
document.write("NWD = " +m);
}
Technical Details
Message-ID:
<heevck$k58$1@news.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mailReferences:
<661b13cf-90cf-479f-836b-0c6f8110988b@v37g2000vbb.googlegroups.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail From: fronco <fronco@poczta.fm> Newsgroups: pl.comp.lang.javascript Subject: Re: Algorytm Euklidesa Date: Mon, 23 Nov 2009 22:38:30 +0100 Organization: http://onet.pl Lines: 13 Message-ID: <heevck$k58$1@news.onet.pl> References: <661b13cf-90cf-479f-836b-0c6f8110988b@v37g2000vbb.googlegroups.com> NNTP-Posting-Host: 188.33.126.53 Mime-Version: 1.0 X-Trace: news.onet.pl 1259012308 20648 188.33.126.53 (23 Nov 2009 21:38:28 GMT) X-Complaints-To: niusy@onet.pl NNTP-Posting-Date: Mon, 23 Nov 2009 21:38:28 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: <661b13cf-90cf-479f-836b-0c6f8110988b@v37g2000vbb.googlegroups.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit