You need to sign in to do that
Don't have an account?
Hariharan M 18
solve the below expression by having n value and x value1x+2x+3x+....nx print the answer
Can anyone solve this?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Can you try the below code. You can call the method as below.
The logic is simple 1x+2x+3x+4x+... nx= x(1+2+3+4+5+..n)
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,