Bienvenido a Tecnohackers

Tecnohackers » Programacion » Area de Programacion » Scripting. VBS, Batch, Bash, JavaSript.
 » 

Calculadora simple



Autor Tema: Calculadora simple  (Leído 1163 veces)

Desconectado lShadowl

  • Recien Llegado
  • *
  • Mensajes: 20
    • http://sswteam.wordpress.com/
Calculadora simple
« en: Octubre 21, 2009, 03:21:38 am »
Código: You are not allowed to view links. Register or Login
@[URL=http://www.ss64.com/nt/echo.html]echo[/URL] off
:ini
cls
[URL=http://www.ss64.com/nt/echo.html]echo[/URL] Introdusca el 1er numero, luego ENTER
[URL=http://www.ss64.com/nt/echo.html]echo[/URL] Luego el signo de la operacion (+, -, * y /), seguido de ENTER
[URL=http://www.ss64.com/nt/echo.html]echo[/URL] Luego el 2do numero, finalizando [URL=http://www.ss64.com/nt/con.html]con[/URL] ENTER.
[URL=http://www.ss64.com/nt/echo.html]echo[/URL].
[URL=http://www.ss64.com/nt/set.html]set[/URL] /p a=
[URL=http://www.ss64.com/nt/set.html]set[/URL] /a g=%a: =%+666
[URL=http://www.ss64.com/nt/if.html]if[/URL] %g% == 666 ([URL=http://www.ss64.com/nt/echo.html]echo[/URL] ERROR: Debe introducir solo numeros!
                           [URL=http://www.ss64.com/nt/pause.html]pause[/URL]
                           [URL=http://www.ss64.com/nt/goto.html]goto[/URL] ini)
[URL=http://www.ss64.com/nt/set.html]set[/URL] /p b=
@[URL=http://www.ss64.com/nt/set.html]set[/URL] /a h=1%b%2
[URL=http://www.ss64.com/nt/if.html]if[/URL] [URL=http://www.ss64.com/nt/not.html]not[/URL] %b:~0,1%==- ([URL=http://www.ss64.com/nt/if.html]if[/URL] [URL=http://www.ss64.com/nt/not.html]not[/URL] %b:~0,1%==-+ ([URL=http://www.ss64.com/nt/if.html]if[/URL] [URL=http://www.ss64.com/nt/not.html]not[/URL] %b:~0,1%==* ([URL=http://www.ss64.com/nt/if.html]if[/URL] [URL=http://www.ss64.com/nt/not.html]not[/URL] %b:~0,1%==/ ([URL=http://www.ss64.com/nt/echo.html]echo[/URL] ERROR: Los unicos caracteres permitidos en este campo son: + - * /
                                                                                 [URL=http://www.ss64.com/nt/pause.html]pause[/URL]
                                                                                 [URL=http://www.ss64.com/nt/goto.html]goto[/URL] ini ))))
[URL=http://www.ss64.com/nt/set.html]set[/URL] /p c=
[URL=http://www.ss64.com/nt/set.html]set[/URL] /a g=%c: =%+666
[URL=http://www.ss64.com/nt/if.html]if[/URL] %g% == 666 ([URL=http://www.ss64.com/nt/echo.html]echo[/URL] ERROR: Debe introducir solo numeros!
                           [URL=http://www.ss64.com/nt/pause.html]pause[/URL]
                          [URL=http://www.ss64.com/nt/goto.html]goto[/URL] ini)
[URL=http://www.ss64.com/nt/call.html]call[/URL] :proceso %a: =% %b:~0,1% %c: =%
[URL=http://www.ss64.com/nt/pause.html]pause[/URL]
[URL=http://www.ss64.com/nt/goto.html]goto[/URL] ini
:proceso
[URL=http://www.ss64.com/nt/set.html]set[/URL] /a r=%1 %2 %3
[URL=http://www.ss64.com/nt/echo.html]echo[/URL] =%r: =%
[URL=http://www.ss64.com/nt/goto.html]goto[/URL] :EOF

You are not allowed to view links. Register or Login
 Linux  Registered User #473016

Tags:
Tags:

 


SMF 2.0.19 | SMF © 2016, Simple Machines
Paginas Afiliadas
Twitter - FaceBook - Daraxblog
Designed by Smf Personal