+ 5

C# Codegolf: Sum of 7s - Sum of 5s

Let's see who can calculate the difference between multiples of 7 and multiples of 5. Shortest answer wins! (Look at my code of the same name for more rules)

24th Mar 2017, 3:16 AM
Jafca
Jafca - avatar
2 Respostas
+ 6
Oh, now you've got me thinking non-linearly.
27th Mar 2017, 1:56 AM
Kirk Schafer
Kirk Schafer - avatar
+ 3
64 characters: int n=1000,m=500,x=n/5,y=m/7; Console.Write(y*++y*7/2-x*++x*5/2);
16th Dec 2016, 12:12 AM
Jafca
Jafca - avatar