Marks :100
: 0 | : 0
You are given a number N. If N is odd then print the value of the product of digits of the number N otherwise print the value of sum of digits of the number N.
The input contains an integer i.e N ($$$1 \le N \le 10^8$$$).
If N is odd print the value of the product of digits of the number N otherwise print the value of the sum of digits of the number .
111
1
1234
10
You need to login to view your submissions.
You need to login to view all submissions.
Result : Executed
Feel something is wrong with the test cases?
Result : Accepted
Test Cases :
But to Run or Submit the Problem, you need to Log In.
Continue to Log InYour challenge has been submitted successfully.
You will get a response soon via WhatsApp or Email.
Do let us know your issue.