Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
21
Task/Loops-For/Apex/loops-for.apex
Normal file
21
Task/Loops-For/Apex/loops-for.apex
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
for (Integer i = 0; i < 5; i++) {
|
||||
String line = '';
|
||||
|
||||
for (Integer j = 0; j < i; j++) {
|
||||
line += '*';
|
||||
}
|
||||
|
||||
System.debug(line);
|
||||
}
|
||||
|
||||
List<String> lines = new List<String> {
|
||||
'*',
|
||||
'**',
|
||||
'***',
|
||||
'****',
|
||||
'*****'
|
||||
};
|
||||
|
||||
for (String line : lines) {
|
||||
System.debug(line);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue