Return to Snippet

Revision: 46880
at May 27, 2011 03:27 by freakchi


Initial Code
<script>
  	var n1;	
	var n2;
	var n3;
		
	n1=Number(prompt('Ingrese 1er  NUMERO',''));
	n2=Number(prompt('Ingrese 2do  NUMERO',''));
	n3=Number(prompt('Ingrese 3er  NUMERO',''));
	
	if(n1>n2 && n1>n3){
					if(n2>n3){
								document.write(n1+','+n2+','+n3);
								}else{
								document.write(n1+','+n3+','+n2);
								}
	}
	if(n2>n1 && n2>n3){
					if(n1>n3){
								document.write(n2+','+n1+','+n3);
					}else{
								document.write(n2+','+n3+','+n1);
								}
	}
	if(n3>n1 && n3>n2){
					if(n1>n2){
								document.write(n3+','+n1+','+n2);
					}else{
								document.write(n3+','+n2+','+n1);
								}
	}
	
			
			
			
    </script>

Initial URL

                                

Initial Description

                                

Initial Title
Ejercicio 12 - IF (practica del 3er TP)

Initial Tags

                                

Initial Language
JavaScript