Count to 2,000
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
Reply
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);

}





}




}






Reply
liftM2 (*) ((succ (succ 0) +) . (`div` succ (succ 0))) pred (product (((:) =<< sum . (++ [succ (succ 0)])) [succ (succ 0), succ (succ (succ 0))]))
Reply
#include <stdio.h>

int main(void)

{

printf("944\n");

return 0;

}
CCMiniLP, my CCLP1 submissions. Outdated, not recommended.
CCSignificantlyLargerLP, my CCLP4 submissions. More current than my main set.
Consistent Inconsistency (ongoing), my main CC1 custom set. (discussion)
RyanJ1.dat (ongoing), my main CC2 custom set. (discussion)
Mystery Project (unfinished) (previews)

YouTube | Twitch | Steam
Reply
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))
Reply
945++

what language is that H20?
Reply
947

Quote:3 hours ago, Gavin said:

945++

This actually produces the value 945. Teeth


Quote:3 hours ago, Gavin said:

what language is that H20?

I think it's Haskell, but I'm not sure.
Reply
Which language is used to calculate 943 and 945?

Code:
> flip runReader language $ asks id
"Haskell"


Code:
pack [label .l -text 948]
Reply
[Image: Jacques_949.gif]
CCMiniLP, my CCLP1 submissions. Outdated, not recommended.
CCSignificantlyLargerLP, my CCLP4 submissions. More current than my main set.
Consistent Inconsistency (ongoing), my main CC1 custom set. (discussion)
RyanJ1.dat (ongoing), my main CC2 custom set. (discussion)
Mystery Project (unfinished) (previews)

YouTube | Twitch | Steam
Reply
Code:
io.write(950)
Reply


Forum Jump:


Users browsing this thread: 29 Guest(s)