Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

About this user

giovanninicco http://giovanninicco.com

1 total

On This Page:

  1. 1 esempio

esempio

// esempio funzioni

<h1>ECCO IL PROGRAMMA:</h1>
<font color=red> by gn </font>



<script>
function doppio(x){
	return 2*x;
}

function triplo(x){
	return 3*x;
}

function meta(x){
	return x/2;
}

function cubo(x){
	return x*x*x;
}


y=prompt('dammi un numero')
alert(doppio(meta(triplo(cubo(y)))))


</script>
1 total

On This Page:

  1. 1 esempio