1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #include<stdio.h> int main() { int i; int j; int num; printf("Enter the number between 1 to 99"); scanf("%d",&num); int arr[num]; for (i = 0; i < num; i++){ scanf("%d",&num); } for(i = 0; i < num; i++){ if (arr[i] == 42){ break; } else { printf("%d",arr[i]); } } return 0; } } |
I2luY2x1ZGU8c3RkaW8uaD4KaW50IG1haW4oKQp7CglpbnQgaTsKCWludCBqOwoJaW50IG51bTsKCQoJcHJpbnRmKCJFbnRlciB0aGUgbnVtYmVyIGJldHdlZW4gMSB0byA5OSIpOwoJc2NhbmYoIiVkIiwmbnVtKTsKCWludCBhcnJbbnVtXTsKCWZvciAoaSA9IDA7IGkgPCBudW07IGkrKyl7CgkJc2NhbmYoIiVkIiwmbnVtKTsKCX0KCWZvcihpID0gMDsgaSA8IG51bTsgaSsrKXsKCQlpZiAoYXJyW2ldID09IDQyKXsKCQkJYnJlYWs7CgkJfQoJCWVsc2UgewoJCQlwcmludGYoIiVkIixhcnJbaV0pOwoJCX0KCX0KCXJldHVybiAwOwp9Cn0=
-
upload with new input
-
result: Success time: 0.01s memory: 7504 kB returned value: 1
5 14 32 42 15 32
in file included from *OS command line*:-1 prog.4th:1: Undefined word >>>#include<stdio.h><<< Backtrace: $B726CEAC throw $B7279620 no.extensions $B726D024 interpreter-notfound1
-
result: Success time: 0.01s memory: 7504 kB returned value: 1
1 2 88 42 99
in file included from *OS command line*:-1 prog.4th:1: Undefined word >>>#include<stdio.h><<< Backtrace: $B7318EAC throw $B7325620 no.extensions $B7319024 interpreter-notfound1
-
result: Success time: 0s memory: 7504 kB returned value: 1
in file included from *OS command line*:-1 prog.4th:1: Undefined word >>>#include<stdio.h><<< Backtrace: $B730CEAC throw $B7319620 no.extensions $B730D024 interpreter-notfound1



