Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- int n, max;
- if (scanf("%d", &max)) {
- while (scanf("%d", &n)) {
- if (max < n) {
- max = n;
- printf("%d\n", max);
- }
- }
- } else {
- printf("Ne e vnesen broj.");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement