Skip to content

Commit

Permalink
Create 2024-10-19-정보처리기사3.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gghwan committed Oct 19, 2024
1 parent cbe6369 commit 94dc28e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions _posts/2024-10-19-정보처리기사3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
```
#include <iostream>
int main() {
int result[5];
int arr[5] = {77, 32, 10, 99, 50};
for (int i = 0; i < 5; i++) {
result[i] = 1;
for(int j = 0; j < 5; j++) {
if(arr[i] < arr[j]) {
result[i]++;
}
}
}
for (int k = 0; k < 5; k++) {
printf("%d\n", result[k]);
}
return 0;
}
```

0 comments on commit 94dc28e

Please sign in to comment.