“Bash Two for Loops” Kode Jawaban

bash for loop beberapa pernyataan

# Basic syntax:
for i in a b; do echo $i; printf "$i\t$i\n"; done
# Where:
#	- each command in the for loop needs to be separated by semicolons. Here
#		we echo $i and then print $i<tab>$i<newline>
#	- over several lines this would be equivalent to:
for i in a b
do
  echo $i
  printf "$i\t$i\n"
done
Charles-Alexandre Roy

Bash Two for Loops

for i in 0 1 2 3 4 5 6 7 8 9
do
    for j in 0 1 2 3 4 5 6 7 8 9
    do 
        echo "$i$j"
    done
done
Borma

Jawaban yang mirip dengan “Bash Two for Loops”

Pertanyaan yang mirip dengan “Bash Two for Loops”

Lebih banyak jawaban terkait untuk “Bash Two for Loops” di Shell/Bash

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya