Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdbool.h>
- int main()
- {
- int x[100];
- bool check[10];
- int n;
- scanf("%d", &n);
- for (int i = 0; i < n; i++)
- {
- scanf("%d", &x[i]);
- if (!check[x[i]]) check[x[i]] = true;
- }
- for (int i = 0; i < 10; i++)
- {
- if (!check[i]) printf("%d ", i);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement