Posts: 93
Threads: 38
Joined: Feb 2014
21-Sep-2018, 8:30 PM
(This post was last modified: 21-Sep-2018, 8:45 PM by Gavin.)
5 REM display the number 941
10 LET a$ = "9"
20 LET b$ = "4"
30 LET c$ = "1"
40 LET d$ = a$ + b$ + c$
50 LET number = VAL(d$)
60 PRINT number
Posts: 93
Threads: 38
Joined: Feb 2014
package arraysstrings;
import java.util.Arrays;
public class ArraysStrings {
public static void main(String[] args) {
// Display the number 942
String[] aryString = new String[3];
aryString[0] = "9";
aryString[1] = "4";
aryString[2] = "2";
int i;
for (i = 0; i < aryString.length; i++){
System.out.println(aryString);
}
}
}
Posts: 84
Threads: 20
Joined: Feb 2017
Scorecard:
H2O
liftM2 (*) ((succ (succ 0) +) . (`div` succ (succ 0))) pred (product (((:) =<< sum . (++ [succ (succ 0)])) [succ (succ 0), succ (succ (succ 0))]))
Posts: 921
Threads: 65
Joined: Oct 2012
Favorite Pack: CCLP3
Scorecard:
random 8
#include <stdio.h>
int main(void)
{
printf("944\n");
return 0;
}
Posts: 84
Threads: 20
Joined: Feb 2017
Scorecard:
H2O
foldl1 (-) (ap map (ap ((:) . sum . ap map ((: [succ 1, 1, 1]) . succ . ($ succ 1))) (return . ($ succ 1))) (length . mapM id . replicate (succ 1) . enumFromTo 1))
Posts: 93
Threads: 38
Joined: Feb 2014
04-Oct-2018, 12:48 PM
(This post was last modified: 04-Oct-2018, 12:50 PM by Gavin.)
945++
what language is that H20?