Simple C ++ program to convert all substrings from decimal to given base .
#include <bits/stdc++.h> NEW_LINE using namespace std ; int substringConversions ( string str , int k , int b ) { for ( int i = 0 ; i + k <= str . size ( ) ; i ++ ) {