SHARE
TWEET

dsfsee

a guest Feb 17th, 2020 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     }
  2.     if (n3 <= n1 && n3 <= n2 && n3 <= n4 && n3 <= n5 && n3 <= n6 && n3 <= n7 && n3 <= n8 && n3 <= n9 && n3 <= n10)
  3.     {
  4.         cout << "Smallest number: " << n3;
  5.     }
  6.     if (n4 <= n1 && n4 <= n2 && n4 <= n3 && n4 <= n5 && n4 <= n6 && n4 <= n7 && n4 <= n8 && n4 <= n9 && n4 <= n10)
  7.     {
  8.         cout << "Smallest number: " << n4;
  9.     }
  10.     if (n5 <= n1 && n5 <= n2 && n5 <= n3 && n5 <= n4 && n5 <= n6 && n5 <= n7 && n5 <= n8 && n5 <= n9 && n5 <= n10)
  11.     {
  12.         cout << "Smallest number: " << n5;
  13.     }
  14.     if (n6 <= n1 && n6 <= n2 && n6 <= n3 && n6 <= n4 && n6 <= n5 && n6 <= n7 && n6 <= n8 && n6 <= n9 && n6 <= n10)
  15.     {
  16.         cout << "Smallest number: " << n6;
  17.     }
  18.     if (n7 <= n1 && n7 <= n2 && n7 <= n3 && n7 <= n4 && n7 <= n5 && n7 <= n6 && n7 <= n8 && n7 <= n9 && n7 <= n10)
  19.     {
  20.         cout << "Smallest number: " << n7;
  21.     }
  22.     if (n8 <= n1 && n8 <= n2 && n8 <= n3 && n8 <= n4 && n8 <= n5 && n8 <= n6 && n8 <= n7 && n8 <= n9 && n8 <= n10)
  23.     {
  24.         cout << "Smallest number: " << n8;
  25.     }
  26.     if (n9 <= n1 && n9 <= n2 && n9 <= n3 && n9 <= n4 && n9 <= n5 && n9 <= n6 && n9 <= n7 && n9 <= n8 && n9 <= n10)
  27.     {
  28.         cout << "Smallest number: " << n9;
  29.     }
  30.     if (n10 <= n1 && n10 <= n2 && n10 <= n3 && n10 <= n4 && n10 <= n5 && n10 <= n6 && n10 <= n7 && n10 <= n8 && n10 <= n9)
  31.     {
  32.         cout << "Smallest number: " << n10;
  33.     }    
  34.  
  35. return 0;
  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