strange behavior
- To: mathgroup at smc.vnet.net
- Subject: [mg104787] strange behavior
- From: Jason Winters <Jason_member at nntpjunkie.com>
- Date: Tue, 10 Nov 2009 05:58:05 -0500 (EST)
Hi! I am wondering why these two modules behave differently Module[{ans = ""}, For[i = 1, i < 10, i++, ans = InputString["Enter a String"]; Print[ans] ] ] and Module[{ans = ""}, For[i = 1, i < 10, i++, ans = InputString["Enter a String"] Print[ans] ] ] One prints out a bunch of extraneous Null's Also is there anyway to type variable in Mathematica i.e. declare i to be and integer or string or whatever. Thanks for any help you can give. Sorry for the simpleness of these questions. Thanks
- Follow-Ups:
- Re: strange behavior
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: strange behavior
- From: DrMajorBob <btreat1@austin.rr.com>
- Re: strange behavior