Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n;
- long x;
- cin>>x;
- cin>>n;
- for(n>0;n<9999;n++){
- while(n!=0){
- x=n%10;
- }
- while(x % 5 ==0){
- x=x/10;
- x=x+1;
- }
- cout<<n<<" " <<x<<" " <<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement