I have made this program for small integers but,i am unable to make it for bigger numbers in which 10^9+7 will make a difference

hi @divyanshinegi2003_987b3f0f92dd8c0c,
refer https://ide.codingblocks.com/s/662778 ive commented the code