Design and develop c program to find the smallest integer n such that 1+2+3+…+n is equal to or just greater than 100
Help me to find these
Answers
Answered by
0
Explanation:
Given three integer n, m and k, the task is to find the smallest integer > n such that digit m appears exactly k times in it.
Examples:
Input: n = 111, m = 2, k = 2
Output: 122
Input: n = 111, m = 2, k = 3
Output: 222
Similar questions