All class XII or below students having basic knowledge of C/C++ can try out their luck at this one!
You have to write one (exactly one) line code/statement for finding the factorial of a number.
Remember you have to use only one line code. All declaration should be done in that particular statement. You have to take the number from the user and print the result back on the screen.
Code should be like
void main()
{
//”one line executable code”
}
Factorial of a number is the product of all natural numbers till that number.
E.g. 4!=1*2*3*4
I don’t know the syntax of VB, maybe it can be done in that too.
try it……