Skip to content

Instantly share code, notes, and snippets.

View bravefoot's full-sized avatar

Brian Campbell bravefoot

  • Lucid Software
  • Utah
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bravefoot on github.
  • I am bravefoot (https://keybase.io/bravefoot) on keybase.
  • I have a public key whose fingerprint is 4225 6004 3BE7 2141 7748 A5D0 D023 8E66 34CE E4C1

To claim this, I am signing this object:

@bravefoot
bravefoot / Odd-Even
Last active December 20, 2015 06:19 — forked from DCUnit711/Odd-Even
num1 = raw_input('What is the first number: ')
num2 = raw_input('What is the second number: ')
if (num1 % 2) == 0:
print("Num1 is even")
else:
print("Num1 is odd")
if (num2 % 2) == 0:
print("Num2 is even")
else:
print("Num2 is odd")
@bravefoot
bravefoot / Input
Last active December 20, 2015 06:19 — forked from DCUnit711/Input
num1 = int(input('What is the first number: '))
num2 = int(input('What is the second number: '))
a=0
while a<10:
?
a = a+1
print('hello world')
q=int(input('-->'))
for(x in range(1,5)):
if (input%2==0):
print('even')
else:
print('odd')
@bravefoot
bravefoot / euler 1 bad
Created April 5, 2013 17:55
An inefficient algorithm for Euler Project Problem #1
sum = 0
for all x where 1<=x<1000
if x%3 == 0 or x%5 == 0:
sum = sum + x
return sum