combinatorics

Hi. How can I represent these combinations? Do I use if else, switch ? I am totally lost...I want to do it a bit efficiently...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
               
                        //[read] [user] [times] [port/s]
                        read any number port
			read any number+ port  
			read any number+ ports
			read any number  ports
			read all number port		
			read all number+ port
			read all number+ ports
			read all number port
			read null number port		
			read null number+ port
			read null number+ ports
			read null number port
			read user number port		
			read user number+ port
			read user number+ ports
			read user number port

I also want to do for write and execute

thanks
Last edited on
I don't know what you want to do, you could represent these combinations as anything, please be a little bit more specific
Topic archived. No new replies allowed.