Hackety Hacking Problem Factorial

From OLPC
Revision as of 23:11, 22 October 2007 by 221.134.226.220 (talk) (New page: == Problem Statement == You have a word each made up of different letter no letter repeated.You have been given the length of the word.Now the problem is that you have to print the number...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Problem Statement

You have a word each made up of different letter no letter repeated.You have been given the length of the word.Now the problem is that you have to print the number of ways in which the letters can be arranged to return a new word. For Example: Word Length=3 take a word "bat" It can be written in 6 different ways: abt atb bat bta tab tba

So you have to write a program which takes the word length as the input from the user,And prints the number of ways in which they can be arranged.