how do I run this program?

kitepilot at kitepilot.com kitepilot at kitepilot.com
Wed Feb 25 06:13:31 MST 2015


Michael Havens writes: 

> 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~(-:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: junk.c
Type: text/x-c
Size: 349 bytes
Desc: not available
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20150225/72f802bd/attachment.bin>


More information about the PLUG-discuss mailing list