• Forums
  • View New Posts
  • View Today's Posts
  • Search
  • Members
  • Calendar
  • Help
  • Extras
Forum stats
Show team
View New Posts
View Today's Posts
Lowlands Tactical: Forum
Login to account Create an account
Login
Username/Email:
Password: Lost Password?
 

  Lowlands Tactical: Forum Publiek Speeltuin
1 2 Next »
De grote programmeer opdracht 2016!

Thread Modes
De grote programmeer opdracht 2016!
Sacha Offline
Administrator
*******
Posts: 1,305
Threads: 266
Joined: Aug 2014
Reputation: 7
#6
08-11-2016, 11:09 AM
Een externe contributie:

PHP Code:
#!/bin/bash

declare -a myArray
for i in `seq 0 9`; do myArray[$i]=$(($(random -er 100;echo $?)+1)); done
for index in "${!myArray[@]}"; do newArray[$index]=${myArray[$index]}; done
myArray
[$index]=-7;
B=$index;
A=0;echo -n "1st Array:[";for index in "${!myArray[@]}"; do echo -n ${myArray[$index]}; if [ $A -lt $B ]; then echo -n ","; fi;A=$(($A+1)); done; echo \];
A=0;echo -n "2nd Array:[";for index in "${!newArray[@]}"; do echo -n ${newArray[$index]}; if [ $A -lt $B ]; then echo -n ","; fi;A=$(($A+1)); done; echo \]; 
Website Find
Reply
Share Thread:            


Messages In This Thread
De grote programmeer opdracht 2016! - Sacha - 08-10-2016, 03:13 PM
RE: De grote programmeer opdracht 2016! - Sacha - 08-10-2016, 03:15 PM
RE: De grote programmeer opdracht 2016! - PingWing - 08-10-2016, 03:44 PM
RE: De grote programmeer opdracht 2016! - Archu - 08-10-2016, 04:00 PM
RE: De grote programmeer opdracht 2016! - Sacha - 08-10-2016, 07:31 PM
RE: De grote programmeer opdracht 2016! - Sacha - 08-11-2016, 11:09 AM

  • View a Printable Version
  • Subscribe to this thread


Users browsing this thread:
1 Guest(s)

  • Contact Us
  • Forum team
  • Forum stats
  • Return to Top
 
  • RSS Syndication
  • Lite mode
  • Lowlands Tactical
  • Help
 
Forum software by © MyBB - Theme © iAndrew 2014



Linear Mode
Threaded Mode