Jump to content

Is it difficult, or I'm not a programmer?


mlloz
 Share

Recommended Posts

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

  • Developers

$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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...