#include<bits/stdc++.h>using namespace std;int main(){ int num = 45216; string st = to_string(num); cout<<st; return 0;}
Standard input is empty
45216
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!