Zelaron Gaming Forum

Zelaron Gaming Forum (http://zelaron.com/forum/index.php)
-   Tech Help (http://zelaron.com/forum/forumdisplay.php?f=329)
-   -   Help... Programming (http://zelaron.com/forum/showthread.php?t=43649)

-Spector- 2007-10-15 02:14 PM

Help... Programming
 
I was trying to write a very simply math program in batch because I just want t divide two numbers but I haven't done this sort of easy programming in a long time.

Anyway,does anyone know how to make a batch program that accepts two different inputs, divides them an shows the output?

@echo off
Set First = INPUT
Set Second = INPUT
Set Result = First + Second
PRINT Result
pause


Thats what I had but it sucks.

WetWired 2007-10-15 02:45 PM

You can't do math in DOS batch scripts. You can't issue an input prompt in DOS batch scripts.

D3V 2007-10-15 02:46 PM

Go get VB6

-Spector- 2007-10-15 03:26 PM

Sad :( Close plz.

!King_Amazon! 2007-10-15 03:42 PM

I say we leave it open and ridicule spector.

D3V 2007-10-16 09:16 AM

No really, get visual basic 6 and read up on some free tutorials on it, it's probably one of the best beginner programs out there from what I can understand.

Mantralord 2007-10-21 02:09 PM

you can do math in NT batch files, just use set /a


All times are GMT -6. The time now is 10:19 PM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.