Advertisement
Korobka887

3 вариант

Apr 29th, 2023
704
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.     double arr[25];
  5.  
  6.     for (int i = 0; i < 25; ++i) {
  7.         scanf("%lf", &arr[i]);
  8.     }
  9.    
  10.     double mult = 1;
  11.     for (int i = 0; i < 25; ++i) {
  12.         mult *= i % 4 == 0 ? arr[i] : 1;
  13.     }
  14.    
  15.     printf("%lf", mult);
  16.    
  17.     return 0;
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement