// if you want to know a distance between the number and divisor of other number int n,m; n = 3, m = 17; int mod = 17 % 3; //3 is a divisor of 15 and distance between 15 and 18 is 2 cout<<mod; // 2
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter