Guest User

Untitled

a guest
Oct 21st, 2015
547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. ::FAHRENHEIT TO CELSIUS CALCULATOR SCRIPT
  2. ::---------------------------------------
  3. @echo off
  4. :start
  5. cls
  6. echo ---FAHRENHEIT TO CELSIUS---
  7. echo.
  8. echo *Press enter for C-F
  9. set /p temp="Fahrenheit = " || goto:start2
  10. set /a temp=(((%temp%-32)*5)/9)
  11. echo Celsius = %temp%
  12. echo.
  13. pause
  14. goto:start
  15.  
  16. ::----------------------------------------------------
  17. ::----------------------------------------------------
  18.  
  19. :start2
  20. cls
  21. echo ---CELSIUS TO FAHRENHEIT---
  22. echo.
  23. echo *Press enter for F-C
  24. set /p temp="Celsius = " || goto:start
  25. set /a temp=(((%temp%*9)/5)+32)
  26. echo Fahrenheit = %temp%
  27. echo.
  28. pause
  29. goto:start2
Advertisement
Add Comment
Please, Sign In to add comment