Loop over multiple arrays simultaneously: Difference between revisions
Content deleted Content added
No edit summary |
→{{header|C sharp|C#}}: formatting |
||
Line 115: | Line 115: | ||
}</lang> |
}</lang> |
||
=={{header|C sharp|C#}}== |
=={{header|C sharp|C#}}== |
||
<lang csharp> |
<lang csharp> class Program |
||
class Program |
|||
{ |
{ |
||
static void Main(string[] args) |
static void Main(string[] args) |
||
{ |
{ |
||
Line 132: | Line 129: | ||
Console.WriteLine("{0}{1}{2}", a[i], b[i], c[i]); |
Console.WriteLine("{0}{1}{2}", a[i], b[i], c[i]); |
||
} |
} |
||
Console.ReadLine(); |
Console.ReadLine(); |
||
} |
} |
||
}</lang> |
|||
} |
|||
</lang> |
|||
=={{header|Clojure}}== |
=={{header|Clojure}}== |
||
<lang lisp>(doseq [s (map #(str %1 %2 %3) "abc" "ABC" "123")] |
<lang lisp>(doseq [s (map #(str %1 %2 %3) "abc" "ABC" "123")] |