#include <stdio.h>
int stack[100];
int top = -1;
void push(int x){
stack[++top] = x;
}
void pop(){
top--;
}
int main(){
int arr[] = {100, 110, 90, 120};
int count = 0;
for(int i = 0; i < 3; i++){
if(arr[i] > stack[top]){
count++;
break;
}
push(i);
}
printf("%d일 뒤", count);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: