Monday, July 25, 2011

SourceCode

SourceCode Of play with programming post
Find Addition Number:
{
var frm=document.forms["math"];
var A=Number(frm.a.value);
var B=Number(frm.b.value);

var C=A+B;

document.math.c.value=C;

}

Find Factorial Number:
{
var n= document.fact.nVal.value;
var r=1;
for(var i=n; i>0; i--)
{
r = r*i;
}

alert("The "+n+" factorial="+r);
}

Mark Caculation:
{
if(document.mark.bangla.value>=40&&document.mark.english.value>=50&&document.mark.mathematics.value>=45)
alert("You have passed.")
else
alert("You have failed.")
}

Word Counting:
{
var frm=document.forms["count1"];
var A=frm.a.value;
var B=A.split(" ");
document.count1.c.value=B.length;
}

Finding x to the power n:
{
var x= document.power.xVal.value;
var n= document.power.nVal.value;
var r=1;
for(var i=1; i<=n; i++) { r = r*x; } alert("The "+x+" to the power "+n+"="+r); }

Tutorials

Dear all,there are many sites to learn how to make a website.In fact many search engines are still giving us information to find out exact web page from tons of websites.But today i am going to tell you about a website which really makes me feel happy and heartfelt love for it.In addition, it is not only a website for me but also a teacher.Please don't think that my words are an advertisement for the website.I am still a novice in this area.That is why, i am very grateful to this site.Anyways, i should disclose the website name because you may await to hear website name.Ohhooo!!! i have totally forgotten one thing,this site has covered almost many programming languages.In my opinion,this is a well visited learning site .Besides, many websites belong very well content to provide computer programming knowledge. such as:        
http://www.codeproject.com/
http://www.hscripts.com/        

Popular Posts