Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 10740

This challenge is intended to be solved by using, manipulating, accepting as input, or outputting numeric values.

2
votes
GameMaker Language, 70 bytes a=argument0;If a[3]+a[1]=a[2]*2return a[4]*2-a[3]return a[4]*a[4]/a[3]
answered Aug 31 '16 by Timtech
5
votes
bracket sum(Ans{1,1,.5 Multiplies previous list by {1 1 .5} and sums it .1I Previous number is 0 1 2 or 2.5, so multiply by .1 and then by income …
answered May 14 '16 by Timtech
2
votes
TI-Basic, 18 bytes If fPart(.1Ans Return Ans.1 prgmA 10Ans
answered Feb 22 '17 by Timtech
0
votes
Game Maker Language, 44 Replace 12345 with whatever number or variable you want: n=12345while(n>0){r=r*10+(n mod 10)n div 10} If you want to prompt for user input, use this 56 character long code … instead: n=get_string('','')while(n>0){r=r*10+(n mod 10)n div 10} In both pieces of code, the reverse number is stored in r …
answered Nov 30 '13 by Timtech
1
vote
TI-Basic, 28 bytes Input N For(I,1,N randIntNoRep(1,N->L1 SortA(L1 Disp L1 End
answered Mar 12 '15 by Timtech
0
votes
Ti-Basic 84, 26 characters :Input A:Disp fpart(A/2)*2 Returns 1 for odd numbers and 0 for even numbers. Takes nested arrays - 1D, 2D, 3D, 4D, 5D, etc. Old version, 50 characters: :Input A:If fp …
answered Dec 11 '13 by Timtech
0
votes
Golf-Basic 84, 17 i`Ad`fpart(A/2)*2 Returns 0s for even numbers and 1s for odd numbers. Accepts nested arrays - 1D, 2D, 3D, 4D, etc. Old version, 30 characters: i`A@fpart(A/2)*2t`ODD"#t`EVEN" …
answered Dec 10 '13 by Timtech
1
vote
]+k[c-2]}while(e<c){e+=1if k[e]==b r=1}return r It returns true or false; call with f(any number you want) Edit #1 Corrected invalid operators % and /= with mod and div. …
answered Nov 30 '13 by Timtech
0
votes
TI-BASIC, 58 54 Input N:0:While N>0:Ans+E3fpart(N,10:N/10→N:End:Ans Usage prgmREVERSE ?598028 820895 Done
answered Apr 8 '14 by Timtech
1
vote
TI-Basic, 37 bytes Works on any TI-83/84 calculator Input L1 gets input into an array L1(4)²/L1(3 calculate the fifth number in a geometric series If not(sum … (ΔList(ΔList(L1 if ΔList(ΔList(L1)) yields an array of all zeroes L1(4)2-L1(3 calculate the fifth number in an arithmetic series Ans is implicitly returned …
answered Aug 31 '16 by Timtech
1
vote
TI-Basic, 34 bytes sub("ABCDEFGHIJKLMNOPQRSTUVWXYZ",Ans,1 This is as short as it gets...
answered Nov 28 '17 by Timtech
4
votes
4answers
number would be (for example, 0 = single, 1 = married, 2 = head of household). Just don't be ridiculous - Single digit numbers only. Also, functionality for decimal inputs (i.e. including cents) is … undefined, so you only have to worry about integer inputs. For your output, you may either output a decimal value or round it to the nearest whole number. Test Cases Although the second number's range can …
asked May 14 '16 by Timtech
0
votes
GML, 265 bytes A port of @kittycat3141's excellent answer, with the suggestion to golf it further with two new variables (which I named G and H) by @VoteToClose. I also managed to shorten it further …
answered Feb 28 '16 by Timtech
1
vote
GTB, 22 @S;N,"--$x?N)→N~N#~-N&
answered Jan 8 '14 by Timtech
0
votes
Game Maker Language, 116 My new answer relies heavily on FireFly's formula: a[1]="no one"a[2]='A'a[3]='B'a[4]='C'return a[(3-min(b=argument0 mod 2*4+argument1 mod 2*2+argument2 mod 2,7-b)||1)] The …
answered Nov 30 '13 by Timtech

15 30 50 per page