Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- int main() {
- int a[10], mn = 0;
- for (int i = 0; i < 10; ++i) scanf("%d", &a[i]);
- for (int i = 1; i < 10; ++i) if (a[i] <= a[mn]) mn = i;
- printf("%d\n", mn + 1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement