DIGIT-ARC read-only archive · snapshot: July 23, 2026

Need help with C++

2 posts · originally from https://geek.digit.in/community/threads/need-help-with-c.99720/

Sparsh007
Sparsh007 Original post #1
Oct 13, 2008 at 2:44 PM
hey guys i need a program which could do the following
i will enter few alphabets and it prints all the possible 4 letter combination with them into the notepad file.
Ex: if i enter a,b,c,d,e,f,g
then it gives the output
abcd
abce
abcf
abcg
acde
acfg etc....
Help will be appreciated
furious_gamer
Oct 13, 2008 at 2:59 PM
hey guys i need a program which could do the following
i will enter few alphabets and it prints all the possible 4 letter combination with them into the notepad file.
Ex: if i enter a,b,c,d,e,f,g
then it gives the output
abcd
abce
abcf
abcg
acde
acfg etc....
Help will be appreciated

Just try it urself.....:D
Use permutation logic and apply it for those alphabets.....