Guest User

Untitled

a guest
Jan 13th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. int frequency(int*a, int n)
  2. {
  3.  
  4.     int x=0;
  5.     for(int i=0;i<n;i++)
  6.     {
  7.         for(int j=0;j<n;j++)
  8.         {
  9.             if (a[j]==a[j+1])
  10.               a[j]=a[j+1]='*'; 
  11.         }
  12.         x++;
  13.    
  14.     }
  15.  
  16. }
Add Comment
Please, Sign In to add comment