Problems
Write a program that declares an array that can accept 100 integers, then sequentially accepts integers, stops accepting -1, and outputs the last three integers excluding -1. (If the number of integers received is less than three, excluding -1, output all integers except -1.)
Example #1
30 20 10 60 80 -1
10 60 80
Example #2
50 -1
50
Source
자기주도C언어프로그래밍