Advertisement
AlexAvram

Untitled

Feb 27th, 2023
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. problema 2 de pe fisa:
  2. int frecv[10]//pt cele 9 cifre
  3. for (i=1; i<=n; ++i)
  4. {
  5. f>>x;
  6. frecv[x]++;
  7. {
  8. for (i=0; i<=9; ++i)//crescator
  9. if(frecv[i]==1)//daca cifra a aparut o singura data
  10. g<<i<<" ";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement