SHARE
TWEET

Untitled

a guest Dec 16th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <string>
  3. #include <cstdlib>
  4. #include <ctime>
  5. using namespace std;
  6.  
  7. main()
  8. {
  9. int x[150];
  10. srand(time(NULL));
  11. for(int i=0; i<150; i++)
  12. {
  13.    if(i%3 == 0)
  14.    {
  15.        x[i]=0;
  16.    }else
  17.    {
  18.        x[i]=rand%11;
  19.    }
  20. }
  21. int odleglosc=0;
  22. for(int=0; i<149; i++)
  23. {
  24.     int temp=0;
  25.     temp=x[x+1]-x[i];
  26.     if(temp<0)
  27.         temp= -temp;
  28.     odleglosc=odleglosc+temp;
  29.     odleglosc=odleglosc*3;
  30. }
  31.     return 0;
  32. }
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