Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- int m,k,div,cif,cif2;
- cout<<"m="<<endl;
- cin>>m;
- cout<<"k="<<endl;
- cin>>k;
- div=k;
- cif=m/(pow(10,div));
- cif2=cif%10;
- cout<<"Cifra este..."<<endl<<cif2;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement