how i m going to assign a value of 2!/6 into a variable ???

! Is the factorial symbol. a factorial is defined as n! = 1 * 2 * 3 * ... * n-1 * n. Also 0! = 1. You will ned to write a function that will calculate that. If you know how to use a for loop it is pretty simple to do.

any example ???

yes there's a lot if you search

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.