Marks :100
: 1 | : 3
Given N and a number, the task is to find the sum of n digit numbers that are divisible by the given number
The first line of input contains a two integers N and X ($$$1 \le N \le 10 $$$) ($$$1 \le X \le 10^5$$$)
For each output print the sum of N digit numbers that are divisible by the given number
2 7
728
3 7
70336
For test case 1:
There are 13 n-digit numbers that are divisible by 7.
Numbers are: 14+21+28+35+42+49+56+63+70+77+84+91+98
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.