[php] nose.php
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
- let numero=prompt("Ingresa número del 20 al 99");
- let digito=numero.charAt(0);
- let digito2=numero.charAt(1);
- //Froylan Marsopas
- if(numero.length=="2"){
- if(numero>=20 && numero<=99){
- switch(digito){
- case '2':
- a="Veint";
- break;
- case '3':
- a="Treinta";
- break;
- case '4':
- a="Cuarenta";
- break;
- case '5':
- a="Cincuenta";
- break;
- case '6':
- a="Sesenta";
- break;
- case '7':
- a="Setenta";
- break;
- case '8':
- a="Ochenta";
- break;
- case '9':
- a="Noventa";
- break;
- }
- if(digito==2){
- switch(digito2){
- case '0':
- console.log(a+"e");
- break;
- case '1':
- console.log(a+"iuno");
- break;
- case '2':
- console.log(a+"idos");
- break;
- case '3':
- console.log(a+"itres");
- break;
- case '4':
- console.log(a+"icuatro");
- break;
- case '5':
- console.log(a+"icinco");
- break;
- case '6':
- console.log(a+"iseis");
- break;
- case '7':
- console.log(a+"isiete");
- break;
- case '8':
- console.log(a+"iocho");
- break;
- case '9':
- console.log(a+"inueve");
- }
- }
- else{
- switch(digito2){
- case '1':
- console.log(a+" y uno");
- break;
- case '2':
- console.log(a+" y dos");
- break;
- case '3':
- console.log(a+" y tres");
- break;
- case '4':
- console.log(a+" y cuatro");
- break;
- case '5':
- console.log(a+" y cinco");
- break;
- case '6':
- console.log(a+" y seis");
- break;
- case '7':
- console.log(a+" y siete");
- break;
- case '8':
- console.log(a+" y ocho");
- break;
- case '9':
- console.log(a+" y nueve");
- }
- }
- }
- else{
- console.log("Ingrese 2 números");
- }
- }
Editor
You can edit this paste and save as new:
File Description
- nose.php
- Paste Code
- 24 Mar-2023
- 2.57 Kb
You can Share it:
Latest Code Pastes