daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest Jan 13th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Top