this code shows TLE
THIS SHOWS WRONG ANSWER WHEN I TYPED 5 THIS SHOWED 120 HOWEVER, I DONT KNOW THIS CODE IS PERFECT STILL IT SHOWS WRONG ANSWER
Code wrong, I THINK THE COMPILER HAS SOME ERROR
You tagged ur code on a different question. Pls tell the question too.
its the broken calculator one
i have shown two codes
You need to store values in array.