Advertisement
Guest User

asa

a guest
Feb 20th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     char a[256]="w234b5br6779"
  8.     int n=strlen(a);
  9.     for(int i=0;i<n-1;i++)
  10.       if(a[i]>='0' && a[i]<='9' && a[i+1]>='0' && a[i+1]<='9')
  11.       cout<<a[i]<<a[i+1];
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement