daily pastebin goal
4%
SHARE
TWEET

Jedu mi se napolitanke

a guest Mar 13th, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.   int i, a, b, c, d, num, cnt = 0;
  5.  
  6.   scanf("%d %d %d %d %d", &a, &b, &c, &d, &num);
  7.  
  8.   for(i = 1; i <= num; ++i){
  9.       if(i % a == 0 || i % b == 0 || i % c == 0 || i % d == 0) ++cnt;
  10.   }
  11.  
  12.   printf("%d", cnt);
  13.   return 0;
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top