Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Loops-N-plus-one-half/Pike/loops-n-plus-one-half-1.pike
Normal file
10
Task/Loops-N-plus-one-half/Pike/loops-n-plus-one-half-1.pike
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
int main(){
|
||||
for(int i = 1; i <= 11; i++){
|
||||
write(sprintf("%d",i));
|
||||
if(i == 10){
|
||||
break;
|
||||
}
|
||||
write(", ");
|
||||
}
|
||||
write("\n");
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
> "1, 2, 3"/", ";
|
||||
Result: ({ "1", "2", "3" })
|
||||
> ({ "1", "2", "3" })*", ";
|
||||
Result: "1, 2, 3"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
array a = (array(string))enumerate(10, 1, 1);
|
||||
write(a * ", " + "\n");
|
||||
Loading…
Add table
Add a link
Reference in a new issue