can u help me writing a program????

M

munitech4u

hi...everybody....can u plz give me any idea on how to write a program
which cud give me the total possible combinations of a number or word.
 
I

Ivar Rosquist

hi...everybody....can u plz give me any idea on how to write a program
which cud give me the total possible combinations of a number or word.

Maybe before trying to learn C you should try and learn to write
understandable English.
 
M

Martin Ambuhl

munitech4u said:
hi...everybody....can u plz give me any idea on how to write a program
which cud give me the total possible combinations of a number or word.

It wouldn't help you. For example, you seem to think that all the
possible permuted subsets of the word "you" is {"u"}, while "could" yields
{"c", "u", "d", "cu", "cd", "du", "uc", "dc", "ud", "cud", "cdu", "dcu",
"duc", "udc", "ucd"}, not one of which contains an 'l' or an 'o'.
 
V

viza

hi...everybody....can u plz give me any idea on how to write a program
which cud give me the total possible combinations of a number or word.

If you are stuck on your homework, here are good places to start:

http://en.wikipedia.org/wiki/Permutation
http://en.wikipedia.org/wiki/Combination
http://en.wikipedia.org/wiki/Factorial
http://mathworld.wolfram.com/Permutation.html
http://mathworld.wolfram.com/Combination.html
http://mathworld.wolfram.com/Factorial.html
http://www.google.com/search?q=c+factorial+function

Hint: it gets complicated when the word has double letters!

PS: dnt lisun 2 th h8rs. U kan spel like wot u wont dood! [cringe]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,281
Latest member
Pedroaciny

Latest Threads

Top