Files
  • main.cpp
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include<iostream>
#include<string>
using namespace std;

string integerToBase(int, int);

int main() {
  // TODO: Implement the missing conversion logic
  
  return 0;
}

string integerToBase(int number, int toBase) {
  string result = "";
  while (number != 0) {
    // TODO: Implement the missing conversion logic
  }
    
  return result;
}