Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #ifndef DEBUG
- #define DEBUG(...)printf(_VA_ARGS_)
- #endif
- #define MAXA 200
- int main() {
- int n;
- int br = 0; // broj mladih
- int mn = 100; // godine starosti najmladje osobe
- int *pbr=NULL, *pmn=NULL;
- pbr = &br;
- pmn = &mn;
- int god;
- scanf("%d ", &n);
- for (int i = 0; i < n; i++) {
- scanf("%d", &god);
- if ((god > 10) && (god < 30)) {
- (*pbr)++;
- }
- if (god < *pmn) {
- *pmn = god;
- }
- }
- printf("%d\n", *pbr);
- printf("%d", *pmn);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement