You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Pedir una frase a través de un prompt.Esta frase servirá de variable para el cifrado.
varphrase=prompt("Ingrese la palabra a cifrar")```#### 2. Debemos convertir las letras de la palabra obtenida a código Ascii.#####2.1 Las letras deben ser igualadas a mayusculas.```javascriptphrase=phrase.toUpperCase();varletterInAscci="";varnum=0;for(vari=0;i<phrase.length;i++){phrase.charCodeAt(i);num=((phrase.charCodeAt(i)+33)%26);```#### 3.convertimos a letras el código obtenido.```javascriptletterInAscci=string.fromChartCode(num);```
#### ![Diagramadeflujo] URL=http://s1146.photobucket.com/user/AriellaRogue4/media/function%20cesar%201_zpsi9gq4q1y.jpg.html][IMG]http://i1146.photobucket.com/albums/o538/AriellaRogue4/function%20cesar%201_zpsi9gq4q1y.jpg[/IMG][/URL]