Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Reply
someone please write c# code for the given logic
Mohith Kovela
7 years ago
386
Reply
For the given number 'N'(0<N<=100), little johnny wants to find out the minimum positive integer 'X' divisible by 'N'. where the sum of digits of 'X' is equal to 'N' and 'X' is not equal to 'N'
If such 'X' does not exist, then output should be -1
Ex:
Input: 9
Output: 18
Input: 10
Output: 190
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
c# loops, printing number patterns
Configure XMPP in .net