Hello There, Guest! Login Register
Logo
Dismiss this notice
MaDLeeTs is not responsible for any attacks that are carried out on networks, websites or servers.
MaDLeeTs staff members cannot be held responsible.
All information on this forum is for educational purposes only.


Challenge for the programmers

  • 0 Vote(s) - 0 Average


08-30-2014, 07:16 AM #1
ox_body Offline TeaM MaDLeeTs ***
TeaM MaDLeeTs
Posts:34 Threads:6 Joined:Nov 2013 Reputation: 2
Mood: Bookworm
?????? ????? ? ???? ???? ? ??????
Hi
I want to start new kind of challenge
Challenge for the programmers
Please let me add the first challenge

Write script in with any programming language to print the following pattern:

4444444
4333334
4322234
4321234
4322234
4333334
4444444


show me new ideas don't just print all values :dodgy:
Good luck Biggrinsmiley

I'm Ox_Body

[email protected]
ClicK Rep+ IF you like my Participation

08-30-2014, 09:37 AM #2
ALIREZA_PROMIS Offline Junior Hacker **
Registered
Posts:1 Threads:0 Joined:Jan 2014 Reputation: 0
Mood: None
salam Biggrinsmiley

[Image: 1pnd6dz30trgh0dm26nz.png]

08-30-2014, 07:42 PM #3
ox_body Offline TeaM MaDLeeTs ***
TeaM MaDLeeTs
Posts:34 Threads:6 Joined:Nov 2013 Reputation: 2
Mood: Bookworm
The first one , you did it perfectly
Thank you ALIREZA_PROMIS
Biggrinsmiley

And this is for me


Attached Files Thumbnail(s)
   

I'm Ox_Body

[email protected]
ClicK Rep+ IF you like my Participation

10-12-2014, 09:38 PM #4
Ninja Offline Junior Member **
Registered
Posts:29 Threads:2 Joined:Oct 2014 Reputation: 4
Mood: Speechless
HERE IS MY magical and short best way Smiley1
real programmers do it like this Biggrinsmiley
Code:
const int MAD = 10;
for ( int n = 0; n < 1000; n++ )
{
    cout << array[n] << ((n+1) % MAD ? " " : "\n");
}

# Knowledge Must Be free
# Anyone needs any C++/ASM programming help then contact me.
# Need help compiling your local roots,i will do that too.
http://www.madleets.com

10-12-2014, 11:51 PM #5
T3N38R15 Offline ? lawless-coder *****
Moderators
Posts:812 Threads:48 Joined:Jan 2014 Reputation: 126
Mood: Fine
Smiley1 Ninja don't publish your solution here.

[Image: xodhvlpa.jpg]
[Image: test.php]






Forum Jump:


Users browsing this thread:1 Guest(s)