Sign in to follow this  
Followers 0
mlloz

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

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



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

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

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. :)

Share this post


Link to post
Share on other sites

$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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

yes it is :)

thanks Jos..

thank you guys..

Share this post


Link to post
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
Sign in to follow this  
Followers 0