Que➤ You are given three integers: A, N, M. You write the number A appended to itself N times in a row. Let's call the resulting big number X. For example, if A = 120, N = 3, then X will be 120120120. Find out the value of X modulo M.
Example 1: As A = 12, N = 2, X = 1212, 1212 modulo 17 = 5
Example 2. As A = 523, N = 3, X = 523523523, 523523523 modulo 11 = 6
Programme Will Give Output :- 5 6
FOLLOW ME ON :-
INSTAGRAM :- https://www.instagram.com/akshay_methaniya_2809/
FACEBOOK :- https://www.facebook.com/akshay.methaniya
Comments
Post a Comment