Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > The Zelaron Nexus > Science and Art > Tech Help

 
 
Thread Tools Display Modes

 
Help... Programming
Reply
Posted 2007-10-15, 02:14 PM
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.
Old
Profile PM WWW Search
-Spector- is the result of 14 billion years of hydrogen atom evolution-Spector- is the result of 14 billion years of hydrogen atom evolution-Spector- is the result of 14 billion years of hydrogen atom evolution-Spector- is the result of 14 billion years of hydrogen atom evolution-Spector- is the result of 14 billion years of hydrogen atom evolution-Spector- is the result of 14 billion years of hydrogen atom evolution
 
 
-Spector-
 



 
Reply
Posted 2007-10-15, 02:45 PM in reply to -Spector-'s post "Help... Programming"
You can't do math in DOS batch scripts. You can't issue an input prompt in DOS batch scripts.
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired
 



 
Reply
Posted 2007-10-15, 02:46 PM in reply to WetWired's post starting "You can't do math in DOS batch scripts...."
Go get VB6














Quote:
!King_Amazon!: I talked to him while he was getting raped
[quote][16:04] jamer123: GRRR firefox just like quit on me now on internet exploder[quote]
...
[quote=!King_Amazon!]notices he's 3 inches shorter than her son and he's circumcised [quote]
Old
Profile PM WWW Search
D3V is convinced there are no coincidences, only the illusion of coincidencesD3V is convinced there are no coincidences, only the illusion of coincidencesD3V is convinced there are no coincidences, only the illusion of coincidencesD3V is convinced there are no coincidences, only the illusion of coincidencesD3V is convinced there are no coincidences, only the illusion of coincidencesD3V is convinced there are no coincidences, only the illusion of coincidences
 
 
D3V
 



 
Reply
Posted 2007-10-15, 03:26 PM in reply to D3V's post starting "Go get VB6"
Sad Close plz.
Old
Profile PM WWW Search
-Spector- is the result of 14 billion years of hydrogen atom evolution-Spector- is the result of 14 billion years of hydrogen atom evolution-Spector- is the result of 14 billion years of hydrogen atom evolution-Spector- is the result of 14 billion years of hydrogen atom evolution-Spector- is the result of 14 billion years of hydrogen atom evolution-Spector- is the result of 14 billion years of hydrogen atom evolution
 
 
-Spector-
 



 
Reply
Posted 2007-10-15, 03:42 PM in reply to -Spector-'s post starting "Sad :( Close plz."
I say we leave it open and ridicule spector.
Old
Profile PM WWW Search
!King_Amazon! simplifies with no grasp of the basics!King_Amazon! simplifies with no grasp of the basics!King_Amazon! simplifies with no grasp of the basics!King_Amazon! simplifies with no grasp of the basics!King_Amazon! simplifies with no grasp of the basics!King_Amazon! simplifies with no grasp of the basics!King_Amazon! simplifies with no grasp of the basics
 
 
!King_Amazon!
 



 
Reply
Posted 2007-10-16, 09:16 AM in reply to -Spector-'s post starting "Sad :( Close plz."
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.














Quote:
!King_Amazon!: I talked to him while he was getting raped
[quote][16:04] jamer123: GRRR firefox just like quit on me now on internet exploder[quote]
...
[quote=!King_Amazon!]notices he's 3 inches shorter than her son and he's circumcised [quote]
Old
Profile PM WWW Search
D3V is convinced there are no coincidences, only the illusion of coincidencesD3V is convinced there are no coincidences, only the illusion of coincidencesD3V is convinced there are no coincidences, only the illusion of coincidencesD3V is convinced there are no coincidences, only the illusion of coincidencesD3V is convinced there are no coincidences, only the illusion of coincidencesD3V is convinced there are no coincidences, only the illusion of coincidences
 
 
D3V
 



 
Reply
Posted 2007-10-21, 02:09 PM in reply to D3V's post starting "No really, get visual basic 6 and read..."
you can do math in NT batch files, just use set /a
Old
Profile PM WWW Search
Mantralord seldom sees opportunities until they cease to beMantralord seldom sees opportunities until they cease to beMantralord seldom sees opportunities until they cease to beMantralord seldom sees opportunities until they cease to be
 
 
Mantralord
 
 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming Faq Demosthenes Tech Help 4 2004-10-25 04:43 PM
Basic Programming (Microsoft Visual Basic 6) OmniFalcon Tech Help 23 2003-10-26 10:46 AM
*** PROGRAMMING HELP **** tacoX Tech Help 4 2003-01-18 09:23 AM
This is the Place for Discussing Programming and Scripting WetWired Tech Help 1 2002-07-05 06:13 PM
Programming GameCube Tech Help 7 2002-03-12 12:23 PM


All times are GMT -6. The time now is 02:40 AM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.