how do I run this program?

druid001 . dtroyer1 at gmail.com
Wed Feb 25 08:22:53 MST 2015


Can't help, but what a coincidence, I just started bandit last night!

On Wed, Feb 25, 2015 at 1:51 AM, Michael Havens <bmike1 at gmail.com> wrote:

> I need to get every four digit combination as part of the next challenge
> in bandit. I'm not a programmer so I googled for a solution. Please, how do
> I run this program?
>
> int main(int argc, char** argv){
> int a,b,c,d;
>
> for(a=1; a<5; a++){
> for(b=1; b<5; b++){
> for(c=1; c<5; c++){
> for(d=1; d<5; d++){
> if(!(a==b || a==c || a==d || b==c || b==d || c==d))
> printf("%d%d%d%d
> ",a,b,c,d);
> }
> }
> }
> }
>
> return 0;
> }
> :-)~MIKE~(-:
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>



-- 
Love, sex, food, friendship, play, beauty and the simple pleasure of a cold
beer are all well and good, but never forget that the universe is
determined to kill you by whatever means necessary.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20150225/15f02f1d/attachment.html>


More information about the PLUG-discuss mailing list