Friday, 9 October 2015
LCM GCF CALCULATOR CODE


-----------------------------------------------------------------------------------------------------------------
COPY AND PASTE BELOW CODE IN POST HTML SECTION
-----------------------------------------------------------------------------------------------------------------
<html>
<head>
<title>LCM GCF CALCULATOR </title>
<script type="text/javascript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original: Seamus Yim -->
<!-- Begin
function go(input1,input2,input3){
if (document.form1.text3.value!=""){
document.form1.answer.value=hcf(hcf(input1,input2),input3);
document.form1.answer2.value=lcm(lcm(input1,input2),input3);
} else {
document.form1.answer.value=hcf(input1,input2);
document.form1.answer2.value=lcm(input1,input2);
}
}
function hcf(text1,text2){
var gcd=1;
if (text1>text2) {text1=text1+text2; text2=text1-text2; text1=text1-text2;}
if ((text2==(Math.round(text2/text1))*text1)) {gcd=text1}else {
for (var i = Math.round(text1/2) ; i > 1; i=i-1) {
if ((text1==(Math.round(text1/i))*i))
if ((text2==(Math.round(text2/i))*i)) {gcd=i; i=-1;}
}
}
return gcd;
}
function lcm(t1,t2){
var cm=1;
var f=hcf(t1,t2);
cm=t1*t2/f;
return cm;
}
// End -->
</script>
<style>
.center {
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIQ880_LgZX9_9VHMxBpmHB5STwjyeqBAd5QOCvHm0Ztkg0mLvVy3ilYPeH6q7PxAEvtbEkJoLJ3QOHqyDGm3ilz2qKo3-HtVBDoysqE3tcYVqkhjuzt7iUNapJ37EOCZxt_IKMZ7Sz3w4/w550-h250-no/11700798_449077528586911_7615001439496110272_n.png);
font-family:'Comic Sans MS';
font-weight:bold;
color:black;
padding: 0.5em;
border-style: solid;
border-width: 1px;
border-color: transparent transparent rgba(0,0,0,0.4) transparent;
font-size:22px;
}
input[type="text"], textarea {
background:url(data:image/gif;base64,R0lGODlhIAMoAOYAAP///8rPy/7+/snOysvQzMjNyfn7+cfNyN/m39bc19zo5Nfd2P3+/eTr5Nbc1s/V0MnOy8vPy+3v7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WaWFKOKIJJZo4okopqjiiiy26OKLpQUCADs=);
border-color:transparent transparent rgba(0, 0, 0, 0.4);
background-repeat: no-repeat;
border-style:solid;
border-width:1px;
color:black;
font-family:'Comic Sans MS';
font-size:22px;
font-weight:bold;
padding:0.5em;
width:500px;
}
p {
background-color:#000000;
text-align: center;
color: red;
font-size:22px,
font-weight:400;
}
input.GREEN {
background-color:LimeGreen;
color:#FFFFFF;
font-size:30px;
width:200px;
height:50px;
}
input.RED {
background-color:Red;
color:#FFFFFF;
font-size:30px;
width:300px;
height:50px;
}
</style>
</head>
<body>
<div class="center">
<P class=" textarea">LCM GCF CALCULATOR</p>
<br><br>
<div align="center">
<form name="form1">
First Number: <input type="text" name="text1" size="3">
<br><br>
Second Number: <input type="text" name="text2" size="3">
<br><br>
Third Number (<em>not required</em>): <input type="text" name="text3" size="3">
<br><br>
<input type="reset" value="Reset" class="GREEN" />
<input type="button" value="Find GCF and LCM" onclick="go(eval(document.form1.text1.value),eval(document.form1.text2.value),eval(document.form1.text3.value))"class="RED" />
<br><br>
Greatest Common Factor (GCF): <input type="text" name="answer" size="3" readonly="">
<br><br>
Least Common Multiplier (LCM): <input type="text" name="answer2" size="3" readonly="">
</form>
</div>
</div>
</body>
</html>
Related movie you might like to see :

FILE SAVE AS WITH JAVA SCRIPT METHO...

FILE SAVE AS WITH JAVA SCRIPT METH...

HTML CSS JAVA COMPRESSOR CODE

HTML CSS JAVA COMPRESSOR

ONLINE CSS UNMINIFIER CODE

ONLINE CSS UNMINIFIER

CSSO (CSS Optimizer)

SCRIPT TUTORIALS CSSO CSS COMPOSER ...

WHITE SPACE REMOVER CODE

White Space Remover

COMMENTS REMOVER CODE

COMMENTS REMOVER
?
+
X
Recommended for you
Loading..
Related Post for LCM GCF CALCULATOR CODE
TRANSLATE IN JAVA SCRIPT -------------------------------------------------------------------------------------------------------------------------- ENGLISH TO HINDI CODE ------------------------------…
URL LINK SHORTNER READ MORE FIND THIS WORD (data:image link shortener http://fbgadgets.blogspot.co.uk/2014/12/image-converter-software.htmlIMAGE CONVERTER DATA URI FORMAT http://www.hongkiat…
HOW MANY DIVISORS DOES A NUMBER HAVE? -------------------------------------------------------------------------------------------------------------------------- READ MORE: http://www.javascripter.net/math/calculat…
COMPRESS HTML COMPRESS HTML #content{width:500px;margin:0;padding:0;} h1 { width:500px; background: repeating-linear-gradient( 45deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 10p…
JavaScript Compressor Packer A JavaScript Compressor h1 { display: block; font-size: 2em; margin-top: 0.67em; margin-bottom: 0.67em; margin-left: 0; margin-right: 0; font-weight: bold;background: …
LINEAR EQUATION CALCULATOR #parse_btn { background-color:Blue; color:#FFFFFF; font-size:30px; width:200px; height:50px; } x=3;y=7 Calculate it! Solve Graph Lesson Sh…
HOW MANY DIVISORS DOES A NUMBER HAVE? -------------------------------------------------------------------------------------------------------------------------- READ MORE: http://primes.utm.edu/glossary/xpage/tau.…
HCF AND LCM WITH BRACH METHOD CALCULATOR CODE ----------------------------------------------------------------------------------------------------------------- COPY AND PASTE BELOW CODE IN POST HTML SECTION ---------------…
PRIME FACTORS BRANCH CALCULATOR CODE ----------------------------------------------------------------------------------------------------------------- COPY AND PASTE BELOW CODE IN POST HTML SECTION ---------------…
DATA URI CODE IMAGE CONVERT INTO JPG IMAGE Best Online Base64 to Image converter .arrow_box { position: relative; background: #ffffff; border: 4px solid #E9E9E9; } .arrow_box:after,.arrow_box:before { top: 100%; lef…
PRIME FACTORS BRANCH CALCULATOR PRIME FACTORS /* AngularJS v1.2.20 (c) 2010-2014 Google, Inc. http://angularjs.org License: MIT */ (function(S,U,s){'use strict';function v(b){return function(){var …
URDU TYPE WRITER CODE ----------------------------------------------------------------------------------------------------------------- COPY AND PASTE BELOW CODE IN POST HTML SECTION --------------…
LINEAR EQUATION CALCULATOR CODE ----------------------------------------------------------------------------------------------------------------- COPY AND PASTE BELOW CODE IN POST HTML SECTION ---------------…
HCF AND LCM WITH BRACH METHOD CALCULATOR HIGHEST COMMON FACTOR AND LOWEST COMMON MULTIPLE /* AngularJS v1.2.20 (c) 2010-2014 Google, Inc. http://angularjs.org License: MIT */ (function(S,U,s){'use strict';fu…
GREATEST COMMON FACTOR CALCULATOR CODE -------------------------------------------------------------------------------------------------------------------------- READ MORE: http://maths.wordpandit.com/h-c-f-by-…
Remove Extra Spaces Remove Extra Spaces html {height:100%;} body {height:100%; margin:0px; padding:0px; font-family:arial; font-size:16px; line-height:1.7; background-color:#DFECFA;} h1 {c…
URDU TYPE WRITER Urdu keyboard Online .bt {cursor:pointer; width:32pt; font-size:20pt; color:#CC0033; font-family:'Times New Roman'; } .bta {cursor:pointer; width:38pt; font-size:20pt; …
Labels:
TEXT TOOLS
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.