fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int ft_marks[15] = {23,44,32,34,22,34,33,44,23,24,34,44,34,23,50};
  6. int ara[15];
  7. int i,j;
  8. for(i=0, j=0; i<15; i++, j++){
  9. if(ft_marks[i] == 50){
  10. ft_marks[i] = ara[j];
  11. }
  12. printf("%d\n", ara[j]);
  13. }
  14.  
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 4500KB
stdin
Standard input is empty
stdout
194
0
-709642746
32767
1
0
2008177493
11010
0
0
-1525890555
21988
2007235360
11010
0