Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- __int64 a, // Цифра, котурую ищем
- b, // Где ищем
- c;
- ////////////////////////////////////////////////////
- int main() //
- {
- b = 7654321;
- for(int i = 0; i < 18; i++)
- {
- c = b;
- c = c / 10;
- cout << b - (c*10) << endl;
- b = b / 10;
- if(c < 10) break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement