Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: Maceman
#!/usr/bin/perl

$x= -101;
while ($x < 101){
	$a= 3-(4*$x);
	$b= (6*$x)+13;
	if ($a == $b){ print "$x\n";}
	$x++;
}

I'm a big believer in brute force. ;)

/johnny

20 posted on 01/18/2012 6:39:15 PM PST by JRandomFreeper (Gone Galt)
[ Post Reply | Private Reply | To 1 | View Replies ]


To: JRandomFreeper

Haha, awesome. ;)


35 posted on 01/18/2012 7:18:39 PM PST by lefty-lie-spy (Stay metal. For the Horde \m/("_")\m/ - via iPhone from Tokyo.)
[ Post Reply | Private Reply | To 20 | View Replies ]

To: JRandomFreeper

hey, wait, you didnt declare a or b as variables that wont work!

:)


43 posted on 01/18/2012 7:43:05 PM PST by RaceBannon (Ron Paul is to the Constitution what Fred Phelps is to the Bible.)
[ Post Reply | Private Reply | To 20 | View Replies ]

To: JRandomFreeper

Ha-ha! Peace through superior firepower, huh?


46 posted on 01/18/2012 7:47:27 PM PST by Slump Tester (What if I'm pregnant Teddy? Errr-ahh -Calm down Mary Jo, we'll cross that bridge when we come to it)
[ Post Reply | Private Reply | To 20 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson