mlloz Posted December 21, 2008 Share Posted December 21, 2008 why I can't solve this question for some friends? input x / output array, for example if you input 3 the output should be 1 the second line 121, third line 12321, fourth line 121 fifth line 1, and so on. Link to comment Share on other sites More sharing options...
FireFox Posted December 21, 2008 Share Posted December 21, 2008 why I can't solve this question for some friends? input x / output array, for example if you input 3 the output should be 1 the second line 121, third line 12321, fourth line 121 fifth line 1, and so on. ?? $input=InputBox("title","Prompt","1","",250,75) If $input=1 Then MsgBox(64,"","You've entered 1 !") Else MsgBox(64,"","You've not entered 1 !"&@CRLF&"Entered : "&$input) EndIf Link to comment Share on other sites More sharing options...
mlloz Posted December 21, 2008 Author Share Posted December 21, 2008 thanks for fast replying, but thats not what I want.. if you input 3 the result should be 1 121 12321 121 1 the length of that depends on the input.. my brain is now closed and I'm unable to think. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 21, 2008 Developers Share Posted December 21, 2008 $x = InputBox("test","how many?",3) For $y = 1 to $x $text = "" For $z = 1 to $y $text &= $z Next For $z = $y-1 to 1 step -1 $text &= $z Next ConsoleWrite($text & @CRLF) Next For $y = $x-1 to 1 step -1 $text = "" For $z = 1 to $y $text &= $z Next For $z = $y-1 to 1 step -1 $text &= $z Next ConsoleWrite($text & @CRLF) Next SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
mlloz Posted December 21, 2008 Author Share Posted December 21, 2008 yes it is thanks Jos.. thank you guys.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now