Monday, 8 July 2013

Logic foundation by using for loop

Authour:I will teach you courses online

C Language C++ Asp.net VB.net Oracle Hardware and Networking MCSE
Contact: Name: Shrinivas Mobileno:919703619391 E-mail: vas.shrinivas002@gmail.com
Hi

Freinds  i am getting mails stating that i like your way of explanation, people added me in their fav list. day by day i am getting more likes.

Few days back one of my viewer  greet me. Congrats one of your content selected by software GAINT microsoft.Content is

http://javascriptwithshrinivas.blogspot.com/2013/05/how-to-implement-sorting.html

Thanks  to viewers and respectable citizens of whole nations.


next is

print even numbers




<html>
<body>
<script type="text/javascript">

var lenin;

document.write("Even numbers"+ " ");

for(lenin=2; lenin<=16;lenin=lenin+2)

{
document.write(lenin+ " ");
}

</script>

</body>

</html>



explanation 

I took variable lenin and assigned 2 in that like lenin=2

dear you now that by adding 2 to previous number you can get even number
like this lenin=lenin[previous number]+2---------> [lenin=2+2] now 4


so on

6 8 10 12 14 16


next follow below
http://javascriptwithshrinivas.blogspot.com/2013/07/advanced-techniques-for-codeing.html

No comments:

Post a Comment