SHARE
TWEET

Untitled

a guest Nov 13th, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<iostream>
  2. #include<thread>
  3. using namespace std;
  4. int main(){
  5. int n,i;
  6. cin>>n;
  7. cin>>i;
  8. int v[100];
  9. for(i=1;i<=n;i++)
  10.     cin>>v[i];
  11.  
  12.     int minim = v[1];
  13.     for(i=2;i<=n;i++)
  14.         if (minim> v[i])
  15.         minim = v[i];
  16.     cout<<minim;
  17. return 0;
  18. }
  19. static int value;
  20. int first()
  21. {
  22.     std::cout<<std::endl<<"I am first one!"<<std::endl;
  23.     std::cout<<"Give me something= ";
  24.     cin>>value;
  25.     return 0;
  26. }
  27. int second()
  28. {
  29.     std::cout<<"I am second one!"<<std::endl;
  30.     //temporizare
  31.     int testing;
  32.     std::cin>>testing;
  33.     std::cout<<" - >"<<value;
  34. }
  35. int main(
  36.         )
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