7th Oct 2024, 3:27 PM
Debojit Santra
Debojit Santra - avatar
2 Answers
+ 2
https://sololearn.com/compiler-playground/chp5PIJeRbSR/?ref=app
7th Oct 2024, 4:17 PM
ShadowCipher
ShadowCipher - avatar
+ 1
Unless there is a requirement to use an array, the main code could be reduced and allow an indefinite number of input values: int main() { int a; puts("Enter the elements:"); while (scanf("%d", &a)!=EOF) check(a); return 0; }
8th Oct 2024, 8:35 PM
Brian
Brian - avatar