Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- #include <iostream>
- using namespace std;
- int v[10];
- int main() {
- ifstream f("numere.txt");
- int n;
- while (f >> n) {
- while (n > 0) {
- v[n % 10]++;
- n = n / 10;
- }
- }
- for (int i = 0; i < 10; i++)
- if (v[i] == 1)
- cout << i << " ";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement