Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //compilacion g++ -std=c++11 -o NombreEjecutable NombreFuente.cpp
- #include <iostream>
- #include <string>
- using namespace std;
- int main(){
- int entero(0),posicion(0);
- while (true){
- cout <<"Numero : ";
- cin >>entero;
- cout <<"Posicion : ";
- cin>>posicion;
- cout << (to_string(entero))[posicion]<<endl;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement