Advertisement
Guest User

Min and Max 10 (Fixed)

a guest
Dec 1st, 2015
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 113.16 KB | None | 0 0
  1. //updated (fixed fatal bug)
  2. #include <iostream>
  3. int main()
  4. {
  5.     int max, min;
  6.     int userInput[10] = {3,23,32,7,74,57,67,571,78,52};
  7.  
  8.     if (userInput[0] > userInput[1])
  9.  
  10.         if (userInput[0] > userInput[2])
  11.  
  12.             if (userInput[0] > userInput[3])
  13.  
  14.                 if (userInput[0] > userInput[4])
  15.  
  16.                     if (userInput[0] > userInput[5])
  17.  
  18.                         if (userInput[0] > userInput[6])
  19.  
  20.                             if (userInput[0] > userInput[7])
  21.  
  22.                                 if (userInput[0] > userInput[8])
  23.  
  24.                                     if (userInput[0] > userInput[9])
  25.                                         max = userInput[0]; //userInput[0] is max
  26.                                     else
  27.  
  28.                                         max = userInput[9]; //userInput[9] is max
  29.                                 else
  30.  
  31.  
  32.                                     if (userInput[8] > userInput[9])
  33.                                         max = userInput[8]; //userInput[8] is max
  34.                                     else
  35.  
  36.                                         max = userInput[9]; //userInput[9] is max
  37.                             else
  38.  
  39.  
  40.                                 if (userInput[7] > userInput[8])
  41.  
  42.                                     if (userInput[7] > userInput[9])
  43.                                         max = userInput[7]; //userInput[7] is max
  44.                                     else
  45.  
  46.                                         max = userInput[9]; //userInput[9] is max
  47.                                 else
  48.  
  49.  
  50.                                     if (userInput[8] > userInput[9])
  51.                                         max = userInput[8]; //userInput[8] is max
  52.                                     else
  53.  
  54.                                         max = userInput[9]; //userInput[9] is max
  55.                         else
  56.  
  57.  
  58.                             if (userInput[6] > userInput[7])
  59.  
  60.                                 if (userInput[6] > userInput[8])
  61.  
  62.                                     if (userInput[6] > userInput[9])
  63.                                         max = userInput[6]; //userInput[6] is max
  64.                                     else
  65.  
  66.                                         max = userInput[9]; //userInput[9] is max
  67.                                 else
  68.  
  69.  
  70.                                     if (userInput[8] > userInput[9])
  71.                                         max = userInput[8]; //userInput[8] is max
  72.                                     else
  73.  
  74.                                         max = userInput[9]; //userInput[9] is max
  75.                             else
  76.  
  77.  
  78.                                 if (userInput[7] > userInput[8])
  79.  
  80.                                     if (userInput[7] > userInput[9])
  81.                                         max = userInput[7]; //userInput[7] is max
  82.                                     else
  83.  
  84.                                         max = userInput[9]; //userInput[9] is max
  85.                                 else
  86.  
  87.  
  88.                                     if (userInput[8] > userInput[9])
  89.                                         max = userInput[8]; //userInput[8] is max
  90.                                     else
  91.  
  92.                                         max = userInput[9]; //userInput[9] is max
  93.                     else
  94.  
  95.  
  96.                         if (userInput[5] > userInput[6])
  97.  
  98.                             if (userInput[5] > userInput[7])
  99.  
  100.                                 if (userInput[5] > userInput[8])
  101.  
  102.                                     if (userInput[5] > userInput[9])
  103.                                         max = userInput[5]; //userInput[5] is max
  104.                                     else
  105.  
  106.                                         max = userInput[9]; //userInput[9] is max
  107.                                 else
  108.  
  109.  
  110.                                     if (userInput[8] > userInput[9])
  111.                                         max = userInput[8]; //userInput[8] is max
  112.                                     else
  113.  
  114.                                         max = userInput[9]; //userInput[9] is max
  115.                             else
  116.  
  117.  
  118.                                 if (userInput[7] > userInput[8])
  119.  
  120.                                     if (userInput[7] > userInput[9])
  121.                                         max = userInput[7]; //userInput[7] is max
  122.                                     else
  123.  
  124.                                         max = userInput[9]; //userInput[9] is max
  125.                                 else
  126.  
  127.  
  128.                                     if (userInput[8] > userInput[9])
  129.                                         max = userInput[8]; //userInput[8] is max
  130.                                     else
  131.  
  132.                                         max = userInput[9]; //userInput[9] is max
  133.                         else
  134.  
  135.  
  136.                             if (userInput[6] > userInput[7])
  137.  
  138.                                 if (userInput[6] > userInput[8])
  139.  
  140.                                     if (userInput[6] > userInput[9])
  141.                                         max = userInput[6]; //userInput[6] is max
  142.                                     else
  143.  
  144.                                         max = userInput[9]; //userInput[9] is max
  145.                                 else
  146.  
  147.  
  148.                                     if (userInput[8] > userInput[9])
  149.                                         max = userInput[8]; //userInput[8] is max
  150.                                     else
  151.  
  152.                                         max = userInput[9]; //userInput[9] is max
  153.                             else
  154.  
  155.  
  156.                                 if (userInput[7] > userInput[8])
  157.  
  158.                                     if (userInput[7] > userInput[9])
  159.                                         max = userInput[7]; //userInput[7] is max
  160.                                     else
  161.  
  162.                                         max = userInput[9]; //userInput[9] is max
  163.                                 else
  164.  
  165.  
  166.                                     if (userInput[8] > userInput[9])
  167.                                         max = userInput[8]; //userInput[8] is max
  168.                                     else
  169.  
  170.                                         max = userInput[9]; //userInput[9] is max
  171.                 else
  172.  
  173.  
  174.                     if (userInput[4] > userInput[5])
  175.  
  176.                         if (userInput[4] > userInput[6])
  177.  
  178.                             if (userInput[4] > userInput[7])
  179.  
  180.                                 if (userInput[4] > userInput[8])
  181.  
  182.                                     if (userInput[4] > userInput[9])
  183.                                         max = userInput[4]; //userInput[4] is max
  184.                                     else
  185.  
  186.                                         max = userInput[9]; //userInput[9] is max
  187.                                 else
  188.  
  189.  
  190.                                     if (userInput[8] > userInput[9])
  191.                                         max = userInput[8]; //userInput[8] is max
  192.                                     else
  193.  
  194.                                         max = userInput[9]; //userInput[9] is max
  195.                             else
  196.  
  197.  
  198.                                 if (userInput[7] > userInput[8])
  199.  
  200.                                     if (userInput[7] > userInput[9])
  201.                                         max = userInput[7]; //userInput[7] is max
  202.                                     else
  203.  
  204.                                         max = userInput[9]; //userInput[9] is max
  205.                                 else
  206.  
  207.  
  208.                                     if (userInput[8] > userInput[9])
  209.                                         max = userInput[8]; //userInput[8] is max
  210.                                     else
  211.  
  212.                                         max = userInput[9]; //userInput[9] is max
  213.                         else
  214.  
  215.  
  216.                             if (userInput[6] > userInput[7])
  217.  
  218.                                 if (userInput[6] > userInput[8])
  219.  
  220.                                     if (userInput[6] > userInput[9])
  221.                                         max = userInput[6]; //userInput[6] is max
  222.                                     else
  223.  
  224.                                         max = userInput[9]; //userInput[9] is max
  225.                                 else
  226.  
  227.  
  228.                                     if (userInput[8] > userInput[9])
  229.                                         max = userInput[8]; //userInput[8] is max
  230.                                     else
  231.  
  232.                                         max = userInput[9]; //userInput[9] is max
  233.                             else
  234.  
  235.  
  236.                                 if (userInput[7] > userInput[8])
  237.  
  238.                                     if (userInput[7] > userInput[9])
  239.                                         max = userInput[7]; //userInput[7] is max
  240.                                     else
  241.  
  242.                                         max = userInput[9]; //userInput[9] is max
  243.                                 else
  244.  
  245.  
  246.                                     if (userInput[8] > userInput[9])
  247.                                         max = userInput[8]; //userInput[8] is max
  248.                                     else
  249.  
  250.                                         max = userInput[9]; //userInput[9] is max
  251.                     else
  252.  
  253.  
  254.                         if (userInput[5] > userInput[6])
  255.  
  256.                             if (userInput[5] > userInput[7])
  257.  
  258.                                 if (userInput[5] > userInput[8])
  259.  
  260.                                     if (userInput[5] > userInput[9])
  261.                                         max = userInput[5]; //userInput[5] is max
  262.                                     else
  263.  
  264.                                         max = userInput[9]; //userInput[9] is max
  265.                                 else
  266.  
  267.  
  268.                                     if (userInput[8] > userInput[9])
  269.                                         max = userInput[8]; //userInput[8] is max
  270.                                     else
  271.  
  272.                                         max = userInput[9]; //userInput[9] is max
  273.                             else
  274.  
  275.  
  276.                                 if (userInput[7] > userInput[8])
  277.  
  278.                                     if (userInput[7] > userInput[9])
  279.                                         max = userInput[7]; //userInput[7] is max
  280.                                     else
  281.  
  282.                                         max = userInput[9]; //userInput[9] is max
  283.                                 else
  284.  
  285.  
  286.                                     if (userInput[8] > userInput[9])
  287.                                         max = userInput[8]; //userInput[8] is max
  288.                                     else
  289.  
  290.                                         max = userInput[9]; //userInput[9] is max
  291.                         else
  292.  
  293.  
  294.                             if (userInput[6] > userInput[7])
  295.  
  296.                                 if (userInput[6] > userInput[8])
  297.  
  298.                                     if (userInput[6] > userInput[9])
  299.                                         max = userInput[6]; //userInput[6] is max
  300.                                     else
  301.  
  302.                                         max = userInput[9]; //userInput[9] is max
  303.                                 else
  304.  
  305.  
  306.                                     if (userInput[8] > userInput[9])
  307.                                         max = userInput[8]; //userInput[8] is max
  308.                                     else
  309.  
  310.                                         max = userInput[9]; //userInput[9] is max
  311.                             else
  312.  
  313.  
  314.                                 if (userInput[7] > userInput[8])
  315.  
  316.                                     if (userInput[7] > userInput[9])
  317.                                         max = userInput[7]; //userInput[7] is max
  318.                                     else
  319.  
  320.                                         max = userInput[9]; //userInput[9] is max
  321.                                 else
  322.  
  323.  
  324.                                     if (userInput[8] > userInput[9])
  325.                                         max = userInput[8]; //userInput[8] is max
  326.                                     else
  327.  
  328.                                         max = userInput[9]; //userInput[9] is max
  329.             else
  330.  
  331.  
  332.                 if (userInput[3] > userInput[4])
  333.  
  334.                     if (userInput[3] > userInput[5])
  335.  
  336.                         if (userInput[3] > userInput[6])
  337.  
  338.                             if (userInput[3] > userInput[7])
  339.  
  340.                                 if (userInput[3] > userInput[8])
  341.  
  342.                                     if (userInput[3] > userInput[9])
  343.                                         max = userInput[3]; //userInput[3] is max
  344.                                     else
  345.  
  346.                                         max = userInput[9]; //userInput[9] is max
  347.                                 else
  348.  
  349.  
  350.                                     if (userInput[8] > userInput[9])
  351.                                         max = userInput[8]; //userInput[8] is max
  352.                                     else
  353.  
  354.                                         max = userInput[9]; //userInput[9] is max
  355.                             else
  356.  
  357.  
  358.                                 if (userInput[7] > userInput[8])
  359.  
  360.                                     if (userInput[7] > userInput[9])
  361.                                         max = userInput[7]; //userInput[7] is max
  362.                                     else
  363.  
  364.                                         max = userInput[9]; //userInput[9] is max
  365.                                 else
  366.  
  367.  
  368.                                     if (userInput[8] > userInput[9])
  369.                                         max = userInput[8]; //userInput[8] is max
  370.                                     else
  371.  
  372.                                         max = userInput[9]; //userInput[9] is max
  373.                         else
  374.  
  375.  
  376.                             if (userInput[6] > userInput[7])
  377.  
  378.                                 if (userInput[6] > userInput[8])
  379.  
  380.                                     if (userInput[6] > userInput[9])
  381.                                         max = userInput[6]; //userInput[6] is max
  382.                                     else
  383.  
  384.                                         max = userInput[9]; //userInput[9] is max
  385.                                 else
  386.  
  387.  
  388.                                     if (userInput[8] > userInput[9])
  389.                                         max = userInput[8]; //userInput[8] is max
  390.                                     else
  391.  
  392.                                         max = userInput[9]; //userInput[9] is max
  393.                             else
  394.  
  395.  
  396.                                 if (userInput[7] > userInput[8])
  397.  
  398.                                     if (userInput[7] > userInput[9])
  399.                                         max = userInput[7]; //userInput[7] is max
  400.                                     else
  401.  
  402.                                         max = userInput[9]; //userInput[9] is max
  403.                                 else
  404.  
  405.  
  406.                                     if (userInput[8] > userInput[9])
  407.                                         max = userInput[8]; //userInput[8] is max
  408.                                     else
  409.  
  410.                                         max = userInput[9]; //userInput[9] is max
  411.                     else
  412.  
  413.  
  414.                         if (userInput[5] > userInput[6])
  415.  
  416.                             if (userInput[5] > userInput[7])
  417.  
  418.                                 if (userInput[5] > userInput[8])
  419.  
  420.                                     if (userInput[5] > userInput[9])
  421.                                         max = userInput[5]; //userInput[5] is max
  422.                                     else
  423.  
  424.                                         max = userInput[9]; //userInput[9] is max
  425.                                 else
  426.  
  427.  
  428.                                     if (userInput[8] > userInput[9])
  429.                                         max = userInput[8]; //userInput[8] is max
  430.                                     else
  431.  
  432.                                         max = userInput[9]; //userInput[9] is max
  433.                             else
  434.  
  435.  
  436.                                 if (userInput[7] > userInput[8])
  437.  
  438.                                     if (userInput[7] > userInput[9])
  439.                                         max = userInput[7]; //userInput[7] is max
  440.                                     else
  441.  
  442.                                         max = userInput[9]; //userInput[9] is max
  443.                                 else
  444.  
  445.  
  446.                                     if (userInput[8] > userInput[9])
  447.                                         max = userInput[8]; //userInput[8] is max
  448.                                     else
  449.  
  450.                                         max = userInput[9]; //userInput[9] is max
  451.                         else
  452.  
  453.  
  454.                             if (userInput[6] > userInput[7])
  455.  
  456.                                 if (userInput[6] > userInput[8])
  457.  
  458.                                     if (userInput[6] > userInput[9])
  459.                                         max = userInput[6]; //userInput[6] is max
  460.                                     else
  461.  
  462.                                         max = userInput[9]; //userInput[9] is max
  463.                                 else
  464.  
  465.  
  466.                                     if (userInput[8] > userInput[9])
  467.                                         max = userInput[8]; //userInput[8] is max
  468.                                     else
  469.  
  470.                                         max = userInput[9]; //userInput[9] is max
  471.                             else
  472.  
  473.  
  474.                                 if (userInput[7] > userInput[8])
  475.  
  476.                                     if (userInput[7] > userInput[9])
  477.                                         max = userInput[7]; //userInput[7] is max
  478.                                     else
  479.  
  480.                                         max = userInput[9]; //userInput[9] is max
  481.                                 else
  482.  
  483.  
  484.                                     if (userInput[8] > userInput[9])
  485.                                         max = userInput[8]; //userInput[8] is max
  486.                                     else
  487.  
  488.                                         max = userInput[9]; //userInput[9] is max
  489.                 else
  490.  
  491.  
  492.                     if (userInput[4] > userInput[5])
  493.  
  494.                         if (userInput[4] > userInput[6])
  495.  
  496.                             if (userInput[4] > userInput[7])
  497.  
  498.                                 if (userInput[4] > userInput[8])
  499.  
  500.                                     if (userInput[4] > userInput[9])
  501.                                         max = userInput[4]; //userInput[4] is max
  502.                                     else
  503.  
  504.                                         max = userInput[9]; //userInput[9] is max
  505.                                 else
  506.  
  507.  
  508.                                     if (userInput[8] > userInput[9])
  509.                                         max = userInput[8]; //userInput[8] is max
  510.                                     else
  511.  
  512.                                         max = userInput[9]; //userInput[9] is max
  513.                             else
  514.  
  515.  
  516.                                 if (userInput[7] > userInput[8])
  517.  
  518.                                     if (userInput[7] > userInput[9])
  519.                                         max = userInput[7]; //userInput[7] is max
  520.                                     else
  521.  
  522.                                         max = userInput[9]; //userInput[9] is max
  523.                                 else
  524.  
  525.  
  526.                                     if (userInput[8] > userInput[9])
  527.                                         max = userInput[8]; //userInput[8] is max
  528.                                     else
  529.  
  530.                                         max = userInput[9]; //userInput[9] is max
  531.                         else
  532.  
  533.  
  534.                             if (userInput[6] > userInput[7])
  535.  
  536.                                 if (userInput[6] > userInput[8])
  537.  
  538.                                     if (userInput[6] > userInput[9])
  539.                                         max = userInput[6]; //userInput[6] is max
  540.                                     else
  541.  
  542.                                         max = userInput[9]; //userInput[9] is max
  543.                                 else
  544.  
  545.  
  546.                                     if (userInput[8] > userInput[9])
  547.                                         max = userInput[8]; //userInput[8] is max
  548.                                     else
  549.  
  550.                                         max = userInput[9]; //userInput[9] is max
  551.                             else
  552.  
  553.  
  554.                                 if (userInput[7] > userInput[8])
  555.  
  556.                                     if (userInput[7] > userInput[9])
  557.                                         max = userInput[7]; //userInput[7] is max
  558.                                     else
  559.  
  560.                                         max = userInput[9]; //userInput[9] is max
  561.                                 else
  562.  
  563.  
  564.                                     if (userInput[8] > userInput[9])
  565.                                         max = userInput[8]; //userInput[8] is max
  566.                                     else
  567.  
  568.                                         max = userInput[9]; //userInput[9] is max
  569.                     else
  570.  
  571.  
  572.                         if (userInput[5] > userInput[6])
  573.  
  574.                             if (userInput[5] > userInput[7])
  575.  
  576.                                 if (userInput[5] > userInput[8])
  577.  
  578.                                     if (userInput[5] > userInput[9])
  579.                                         max = userInput[5]; //userInput[5] is max
  580.                                     else
  581.  
  582.                                         max = userInput[9]; //userInput[9] is max
  583.                                 else
  584.  
  585.  
  586.                                     if (userInput[8] > userInput[9])
  587.                                         max = userInput[8]; //userInput[8] is max
  588.                                     else
  589.  
  590.                                         max = userInput[9]; //userInput[9] is max
  591.                             else
  592.  
  593.  
  594.                                 if (userInput[7] > userInput[8])
  595.  
  596.                                     if (userInput[7] > userInput[9])
  597.                                         max = userInput[7]; //userInput[7] is max
  598.                                     else
  599.  
  600.                                         max = userInput[9]; //userInput[9] is max
  601.                                 else
  602.  
  603.  
  604.                                     if (userInput[8] > userInput[9])
  605.                                         max = userInput[8]; //userInput[8] is max
  606.                                     else
  607.  
  608.                                         max = userInput[9]; //userInput[9] is max
  609.                         else
  610.  
  611.  
  612.                             if (userInput[6] > userInput[7])
  613.  
  614.                                 if (userInput[6] > userInput[8])
  615.  
  616.                                     if (userInput[6] > userInput[9])
  617.                                         max = userInput[6]; //userInput[6] is max
  618.                                     else
  619.  
  620.                                         max = userInput[9]; //userInput[9] is max
  621.                                 else
  622.  
  623.  
  624.                                     if (userInput[8] > userInput[9])
  625.                                         max = userInput[8]; //userInput[8] is max
  626.                                     else
  627.  
  628.                                         max = userInput[9]; //userInput[9] is max
  629.                             else
  630.  
  631.  
  632.                                 if (userInput[7] > userInput[8])
  633.  
  634.                                     if (userInput[7] > userInput[9])
  635.                                         max = userInput[7]; //userInput[7] is max
  636.                                     else
  637.  
  638.                                         max = userInput[9]; //userInput[9] is max
  639.                                 else
  640.  
  641.  
  642.                                     if (userInput[8] > userInput[9])
  643.                                         max = userInput[8]; //userInput[8] is max
  644.                                     else
  645.  
  646.                                         max = userInput[9]; //userInput[9] is max
  647.         else
  648.  
  649.  
  650.             if (userInput[2] > userInput[3])
  651.  
  652.                 if (userInput[2] > userInput[4])
  653.  
  654.                     if (userInput[2] > userInput[5])
  655.  
  656.                         if (userInput[2] > userInput[6])
  657.  
  658.                             if (userInput[2] > userInput[7])
  659.  
  660.                                 if (userInput[2] > userInput[8])
  661.  
  662.                                     if (userInput[2] > userInput[9])
  663.                                         max = userInput[2]; //userInput[2] is max
  664.                                     else
  665.  
  666.                                         max = userInput[9]; //userInput[9] is max
  667.                                 else
  668.  
  669.  
  670.                                     if (userInput[8] > userInput[9])
  671.                                         max = userInput[8]; //userInput[8] is max
  672.                                     else
  673.  
  674.                                         max = userInput[9]; //userInput[9] is max
  675.                             else
  676.  
  677.  
  678.                                 if (userInput[7] > userInput[8])
  679.  
  680.                                     if (userInput[7] > userInput[9])
  681.                                         max = userInput[7]; //userInput[7] is max
  682.                                     else
  683.  
  684.                                         max = userInput[9]; //userInput[9] is max
  685.                                 else
  686.  
  687.  
  688.                                     if (userInput[8] > userInput[9])
  689.                                         max = userInput[8]; //userInput[8] is max
  690.                                     else
  691.  
  692.                                         max = userInput[9]; //userInput[9] is max
  693.                         else
  694.  
  695.  
  696.                             if (userInput[6] > userInput[7])
  697.  
  698.                                 if (userInput[6] > userInput[8])
  699.  
  700.                                     if (userInput[6] > userInput[9])
  701.                                         max = userInput[6]; //userInput[6] is max
  702.                                     else
  703.  
  704.                                         max = userInput[9]; //userInput[9] is max
  705.                                 else
  706.  
  707.  
  708.                                     if (userInput[8] > userInput[9])
  709.                                         max = userInput[8]; //userInput[8] is max
  710.                                     else
  711.  
  712.                                         max = userInput[9]; //userInput[9] is max
  713.                             else
  714.  
  715.  
  716.                                 if (userInput[7] > userInput[8])
  717.  
  718.                                     if (userInput[7] > userInput[9])
  719.                                         max = userInput[7]; //userInput[7] is max
  720.                                     else
  721.  
  722.                                         max = userInput[9]; //userInput[9] is max
  723.                                 else
  724.  
  725.  
  726.                                     if (userInput[8] > userInput[9])
  727.                                         max = userInput[8]; //userInput[8] is max
  728.                                     else
  729.  
  730.                                         max = userInput[9]; //userInput[9] is max
  731.                     else
  732.  
  733.  
  734.                         if (userInput[5] > userInput[6])
  735.  
  736.                             if (userInput[5] > userInput[7])
  737.  
  738.                                 if (userInput[5] > userInput[8])
  739.  
  740.                                     if (userInput[5] > userInput[9])
  741.                                         max = userInput[5]; //userInput[5] is max
  742.                                     else
  743.  
  744.                                         max = userInput[9]; //userInput[9] is max
  745.                                 else
  746.  
  747.  
  748.                                     if (userInput[8] > userInput[9])
  749.                                         max = userInput[8]; //userInput[8] is max
  750.                                     else
  751.  
  752.                                         max = userInput[9]; //userInput[9] is max
  753.                             else
  754.  
  755.  
  756.                                 if (userInput[7] > userInput[8])
  757.  
  758.                                     if (userInput[7] > userInput[9])
  759.                                         max = userInput[7]; //userInput[7] is max
  760.                                     else
  761.  
  762.                                         max = userInput[9]; //userInput[9] is max
  763.                                 else
  764.  
  765.  
  766.                                     if (userInput[8] > userInput[9])
  767.                                         max = userInput[8]; //userInput[8] is max
  768.                                     else
  769.  
  770.                                         max = userInput[9]; //userInput[9] is max
  771.                         else
  772.  
  773.  
  774.                             if (userInput[6] > userInput[7])
  775.  
  776.                                 if (userInput[6] > userInput[8])
  777.  
  778.                                     if (userInput[6] > userInput[9])
  779.                                         max = userInput[6]; //userInput[6] is max
  780.                                     else
  781.  
  782.                                         max = userInput[9]; //userInput[9] is max
  783.                                 else
  784.  
  785.  
  786.                                     if (userInput[8] > userInput[9])
  787.                                         max = userInput[8]; //userInput[8] is max
  788.                                     else
  789.  
  790.                                         max = userInput[9]; //userInput[9] is max
  791.                             else
  792.  
  793.  
  794.                                 if (userInput[7] > userInput[8])
  795.  
  796.                                     if (userInput[7] > userInput[9])
  797.                                         max = userInput[7]; //userInput[7] is max
  798.                                     else
  799.  
  800.                                         max = userInput[9]; //userInput[9] is max
  801.                                 else
  802.  
  803.  
  804.                                     if (userInput[8] > userInput[9])
  805.                                         max = userInput[8]; //userInput[8] is max
  806.                                     else
  807.  
  808.                                         max = userInput[9]; //userInput[9] is max
  809.                 else
  810.  
  811.  
  812.                     if (userInput[4] > userInput[5])
  813.  
  814.                         if (userInput[4] > userInput[6])
  815.  
  816.                             if (userInput[4] > userInput[7])
  817.  
  818.                                 if (userInput[4] > userInput[8])
  819.  
  820.                                     if (userInput[4] > userInput[9])
  821.                                         max = userInput[4]; //userInput[4] is max
  822.                                     else
  823.  
  824.                                         max = userInput[9]; //userInput[9] is max
  825.                                 else
  826.  
  827.  
  828.                                     if (userInput[8] > userInput[9])
  829.                                         max = userInput[8]; //userInput[8] is max
  830.                                     else
  831.  
  832.                                         max = userInput[9]; //userInput[9] is max
  833.                             else
  834.  
  835.  
  836.                                 if (userInput[7] > userInput[8])
  837.  
  838.                                     if (userInput[7] > userInput[9])
  839.                                         max = userInput[7]; //userInput[7] is max
  840.                                     else
  841.  
  842.                                         max = userInput[9]; //userInput[9] is max
  843.                                 else
  844.  
  845.  
  846.                                     if (userInput[8] > userInput[9])
  847.                                         max = userInput[8]; //userInput[8] is max
  848.                                     else
  849.  
  850.                                         max = userInput[9]; //userInput[9] is max
  851.                         else
  852.  
  853.  
  854.                             if (userInput[6] > userInput[7])
  855.  
  856.                                 if (userInput[6] > userInput[8])
  857.  
  858.                                     if (userInput[6] > userInput[9])
  859.                                         max = userInput[6]; //userInput[6] is max
  860.                                     else
  861.  
  862.                                         max = userInput[9]; //userInput[9] is max
  863.                                 else
  864.  
  865.  
  866.                                     if (userInput[8] > userInput[9])
  867.                                         max = userInput[8]; //userInput[8] is max
  868.                                     else
  869.  
  870.                                         max = userInput[9]; //userInput[9] is max
  871.                             else
  872.  
  873.  
  874.                                 if (userInput[7] > userInput[8])
  875.  
  876.                                     if (userInput[7] > userInput[9])
  877.                                         max = userInput[7]; //userInput[7] is max
  878.                                     else
  879.  
  880.                                         max = userInput[9]; //userInput[9] is max
  881.                                 else
  882.  
  883.  
  884.                                     if (userInput[8] > userInput[9])
  885.                                         max = userInput[8]; //userInput[8] is max
  886.                                     else
  887.  
  888.                                         max = userInput[9]; //userInput[9] is max
  889.                     else
  890.  
  891.  
  892.                         if (userInput[5] > userInput[6])
  893.  
  894.                             if (userInput[5] > userInput[7])
  895.  
  896.                                 if (userInput[5] > userInput[8])
  897.  
  898.                                     if (userInput[5] > userInput[9])
  899.                                         max = userInput[5]; //userInput[5] is max
  900.                                     else
  901.  
  902.                                         max = userInput[9]; //userInput[9] is max
  903.                                 else
  904.  
  905.  
  906.                                     if (userInput[8] > userInput[9])
  907.                                         max = userInput[8]; //userInput[8] is max
  908.                                     else
  909.  
  910.                                         max = userInput[9]; //userInput[9] is max
  911.                             else
  912.  
  913.  
  914.                                 if (userInput[7] > userInput[8])
  915.  
  916.                                     if (userInput[7] > userInput[9])
  917.                                         max = userInput[7]; //userInput[7] is max
  918.                                     else
  919.  
  920.                                         max = userInput[9]; //userInput[9] is max
  921.                                 else
  922.  
  923.  
  924.                                     if (userInput[8] > userInput[9])
  925.                                         max = userInput[8]; //userInput[8] is max
  926.                                     else
  927.  
  928.                                         max = userInput[9]; //userInput[9] is max
  929.                         else
  930.  
  931.  
  932.                             if (userInput[6] > userInput[7])
  933.  
  934.                                 if (userInput[6] > userInput[8])
  935.  
  936.                                     if (userInput[6] > userInput[9])
  937.                                         max = userInput[6]; //userInput[6] is max
  938.                                     else
  939.  
  940.                                         max = userInput[9]; //userInput[9] is max
  941.                                 else
  942.  
  943.  
  944.                                     if (userInput[8] > userInput[9])
  945.                                         max = userInput[8]; //userInput[8] is max
  946.                                     else
  947.  
  948.                                         max = userInput[9]; //userInput[9] is max
  949.                             else
  950.  
  951.  
  952.                                 if (userInput[7] > userInput[8])
  953.  
  954.                                     if (userInput[7] > userInput[9])
  955.                                         max = userInput[7]; //userInput[7] is max
  956.                                     else
  957.  
  958.                                         max = userInput[9]; //userInput[9] is max
  959.                                 else
  960.  
  961.  
  962.                                     if (userInput[8] > userInput[9])
  963.                                         max = userInput[8]; //userInput[8] is max
  964.                                     else
  965.  
  966.                                         max = userInput[9]; //userInput[9] is max
  967.             else
  968.  
  969.  
  970.                 if (userInput[3] > userInput[4])
  971.  
  972.                     if (userInput[3] > userInput[5])
  973.  
  974.                         if (userInput[3] > userInput[6])
  975.  
  976.                             if (userInput[3] > userInput[7])
  977.  
  978.                                 if (userInput[3] > userInput[8])
  979.  
  980.                                     if (userInput[3] > userInput[9])
  981.                                         max = userInput[3]; //userInput[3] is max
  982.                                     else
  983.  
  984.                                         max = userInput[9]; //userInput[9] is max
  985.                                 else
  986.  
  987.  
  988.                                     if (userInput[8] > userInput[9])
  989.                                         max = userInput[8]; //userInput[8] is max
  990.                                     else
  991.  
  992.                                         max = userInput[9]; //userInput[9] is max
  993.                             else
  994.  
  995.  
  996.                                 if (userInput[7] > userInput[8])
  997.  
  998.                                     if (userInput[7] > userInput[9])
  999.                                         max = userInput[7]; //userInput[7] is max
  1000.                                     else
  1001.  
  1002.                                         max = userInput[9]; //userInput[9] is max
  1003.                                 else
  1004.  
  1005.  
  1006.                                     if (userInput[8] > userInput[9])
  1007.                                         max = userInput[8]; //userInput[8] is max
  1008.                                     else
  1009.  
  1010.                                         max = userInput[9]; //userInput[9] is max
  1011.                         else
  1012.  
  1013.  
  1014.                             if (userInput[6] > userInput[7])
  1015.  
  1016.                                 if (userInput[6] > userInput[8])
  1017.  
  1018.                                     if (userInput[6] > userInput[9])
  1019.                                         max = userInput[6]; //userInput[6] is max
  1020.                                     else
  1021.  
  1022.                                         max = userInput[9]; //userInput[9] is max
  1023.                                 else
  1024.  
  1025.  
  1026.                                     if (userInput[8] > userInput[9])
  1027.                                         max = userInput[8]; //userInput[8] is max
  1028.                                     else
  1029.  
  1030.                                         max = userInput[9]; //userInput[9] is max
  1031.                             else
  1032.  
  1033.  
  1034.                                 if (userInput[7] > userInput[8])
  1035.  
  1036.                                     if (userInput[7] > userInput[9])
  1037.                                         max = userInput[7]; //userInput[7] is max
  1038.                                     else
  1039.  
  1040.                                         max = userInput[9]; //userInput[9] is max
  1041.                                 else
  1042.  
  1043.  
  1044.                                     if (userInput[8] > userInput[9])
  1045.                                         max = userInput[8]; //userInput[8] is max
  1046.                                     else
  1047.  
  1048.                                         max = userInput[9]; //userInput[9] is max
  1049.                     else
  1050.  
  1051.  
  1052.                         if (userInput[5] > userInput[6])
  1053.  
  1054.                             if (userInput[5] > userInput[7])
  1055.  
  1056.                                 if (userInput[5] > userInput[8])
  1057.  
  1058.                                     if (userInput[5] > userInput[9])
  1059.                                         max = userInput[5]; //userInput[5] is max
  1060.                                     else
  1061.  
  1062.                                         max = userInput[9]; //userInput[9] is max
  1063.                                 else
  1064.  
  1065.  
  1066.                                     if (userInput[8] > userInput[9])
  1067.                                         max = userInput[8]; //userInput[8] is max
  1068.                                     else
  1069.  
  1070.                                         max = userInput[9]; //userInput[9] is max
  1071.                             else
  1072.  
  1073.  
  1074.                                 if (userInput[7] > userInput[8])
  1075.  
  1076.                                     if (userInput[7] > userInput[9])
  1077.                                         max = userInput[7]; //userInput[7] is max
  1078.                                     else
  1079.  
  1080.                                         max = userInput[9]; //userInput[9] is max
  1081.                                 else
  1082.  
  1083.  
  1084.                                     if (userInput[8] > userInput[9])
  1085.                                         max = userInput[8]; //userInput[8] is max
  1086.                                     else
  1087.  
  1088.                                         max = userInput[9]; //userInput[9] is max
  1089.                         else
  1090.  
  1091.  
  1092.                             if (userInput[6] > userInput[7])
  1093.  
  1094.                                 if (userInput[6] > userInput[8])
  1095.  
  1096.                                     if (userInput[6] > userInput[9])
  1097.                                         max = userInput[6]; //userInput[6] is max
  1098.                                     else
  1099.  
  1100.                                         max = userInput[9]; //userInput[9] is max
  1101.                                 else
  1102.  
  1103.  
  1104.                                     if (userInput[8] > userInput[9])
  1105.                                         max = userInput[8]; //userInput[8] is max
  1106.                                     else
  1107.  
  1108.                                         max = userInput[9]; //userInput[9] is max
  1109.                             else
  1110.  
  1111.  
  1112.                                 if (userInput[7] > userInput[8])
  1113.  
  1114.                                     if (userInput[7] > userInput[9])
  1115.                                         max = userInput[7]; //userInput[7] is max
  1116.                                     else
  1117.  
  1118.                                         max = userInput[9]; //userInput[9] is max
  1119.                                 else
  1120.  
  1121.  
  1122.                                     if (userInput[8] > userInput[9])
  1123.                                         max = userInput[8]; //userInput[8] is max
  1124.                                     else
  1125.  
  1126.                                         max = userInput[9]; //userInput[9] is max
  1127.                 else
  1128.  
  1129.  
  1130.                     if (userInput[4] > userInput[5])
  1131.  
  1132.                         if (userInput[4] > userInput[6])
  1133.  
  1134.                             if (userInput[4] > userInput[7])
  1135.  
  1136.                                 if (userInput[4] > userInput[8])
  1137.  
  1138.                                     if (userInput[4] > userInput[9])
  1139.                                         max = userInput[4]; //userInput[4] is max
  1140.                                     else
  1141.  
  1142.                                         max = userInput[9]; //userInput[9] is max
  1143.                                 else
  1144.  
  1145.  
  1146.                                     if (userInput[8] > userInput[9])
  1147.                                         max = userInput[8]; //userInput[8] is max
  1148.                                     else
  1149.  
  1150.                                         max = userInput[9]; //userInput[9] is max
  1151.                             else
  1152.  
  1153.  
  1154.                                 if (userInput[7] > userInput[8])
  1155.  
  1156.                                     if (userInput[7] > userInput[9])
  1157.                                         max = userInput[7]; //userInput[7] is max
  1158.                                     else
  1159.  
  1160.                                         max = userInput[9]; //userInput[9] is max
  1161.                                 else
  1162.  
  1163.  
  1164.                                     if (userInput[8] > userInput[9])
  1165.                                         max = userInput[8]; //userInput[8] is max
  1166.                                     else
  1167.  
  1168.                                         max = userInput[9]; //userInput[9] is max
  1169.                         else
  1170.  
  1171.  
  1172.                             if (userInput[6] > userInput[7])
  1173.  
  1174.                                 if (userInput[6] > userInput[8])
  1175.  
  1176.                                     if (userInput[6] > userInput[9])
  1177.                                         max = userInput[6]; //userInput[6] is max
  1178.                                     else
  1179.  
  1180.                                         max = userInput[9]; //userInput[9] is max
  1181.                                 else
  1182.  
  1183.  
  1184.                                     if (userInput[8] > userInput[9])
  1185.                                         max = userInput[8]; //userInput[8] is max
  1186.                                     else
  1187.  
  1188.                                         max = userInput[9]; //userInput[9] is max
  1189.                             else
  1190.  
  1191.  
  1192.                                 if (userInput[7] > userInput[8])
  1193.  
  1194.                                     if (userInput[7] > userInput[9])
  1195.                                         max = userInput[7]; //userInput[7] is max
  1196.                                     else
  1197.  
  1198.                                         max = userInput[9]; //userInput[9] is max
  1199.                                 else
  1200.  
  1201.  
  1202.                                     if (userInput[8] > userInput[9])
  1203.                                         max = userInput[8]; //userInput[8] is max
  1204.                                     else
  1205.  
  1206.                                         max = userInput[9]; //userInput[9] is max
  1207.                     else
  1208.  
  1209.  
  1210.                         if (userInput[5] > userInput[6])
  1211.  
  1212.                             if (userInput[5] > userInput[7])
  1213.  
  1214.                                 if (userInput[5] > userInput[8])
  1215.  
  1216.                                     if (userInput[5] > userInput[9])
  1217.                                         max = userInput[5]; //userInput[5] is max
  1218.                                     else
  1219.  
  1220.                                         max = userInput[9]; //userInput[9] is max
  1221.                                 else
  1222.  
  1223.  
  1224.                                     if (userInput[8] > userInput[9])
  1225.                                         max = userInput[8]; //userInput[8] is max
  1226.                                     else
  1227.  
  1228.                                         max = userInput[9]; //userInput[9] is max
  1229.                             else
  1230.  
  1231.  
  1232.                                 if (userInput[7] > userInput[8])
  1233.  
  1234.                                     if (userInput[7] > userInput[9])
  1235.                                         max = userInput[7]; //userInput[7] is max
  1236.                                     else
  1237.  
  1238.                                         max = userInput[9]; //userInput[9] is max
  1239.                                 else
  1240.  
  1241.  
  1242.                                     if (userInput[8] > userInput[9])
  1243.                                         max = userInput[8]; //userInput[8] is max
  1244.                                     else
  1245.  
  1246.                                         max = userInput[9]; //userInput[9] is max
  1247.                         else
  1248.  
  1249.  
  1250.                             if (userInput[6] > userInput[7])
  1251.  
  1252.                                 if (userInput[6] > userInput[8])
  1253.  
  1254.                                     if (userInput[6] > userInput[9])
  1255.                                         max = userInput[6]; //userInput[6] is max
  1256.                                     else
  1257.  
  1258.                                         max = userInput[9]; //userInput[9] is max
  1259.                                 else
  1260.  
  1261.  
  1262.                                     if (userInput[8] > userInput[9])
  1263.                                         max = userInput[8]; //userInput[8] is max
  1264.                                     else
  1265.  
  1266.                                         max = userInput[9]; //userInput[9] is max
  1267.                             else
  1268.  
  1269.  
  1270.                                 if (userInput[7] > userInput[8])
  1271.  
  1272.                                     if (userInput[7] > userInput[9])
  1273.                                         max = userInput[7]; //userInput[7] is max
  1274.                                     else
  1275.  
  1276.                                         max = userInput[9]; //userInput[9] is max
  1277.                                 else
  1278.  
  1279.  
  1280.                                     if (userInput[8] > userInput[9])
  1281.                                         max = userInput[8]; //userInput[8] is max
  1282.                                     else
  1283.  
  1284.                                         max = userInput[9]; //userInput[9] is max
  1285.     else
  1286.  
  1287.  
  1288.         if (userInput[1] > userInput[2])
  1289.  
  1290.             if (userInput[1] > userInput[3])
  1291.  
  1292.                 if (userInput[1] > userInput[4])
  1293.  
  1294.                     if (userInput[1] > userInput[5])
  1295.  
  1296.                         if (userInput[1] > userInput[6])
  1297.  
  1298.                             if (userInput[1] > userInput[7])
  1299.  
  1300.                                 if (userInput[1] > userInput[8])
  1301.  
  1302.                                     if (userInput[1] > userInput[9])
  1303.                                         max = userInput[1]; //userInput[1] is max
  1304.                                     else
  1305.  
  1306.                                         max = userInput[9]; //userInput[9] is max
  1307.                                 else
  1308.  
  1309.  
  1310.                                     if (userInput[8] > userInput[9])
  1311.                                         max = userInput[8]; //userInput[8] is max
  1312.                                     else
  1313.  
  1314.                                         max = userInput[9]; //userInput[9] is max
  1315.                             else
  1316.  
  1317.  
  1318.                                 if (userInput[7] > userInput[8])
  1319.  
  1320.                                     if (userInput[7] > userInput[9])
  1321.                                         max = userInput[7]; //userInput[7] is max
  1322.                                     else
  1323.  
  1324.                                         max = userInput[9]; //userInput[9] is max
  1325.                                 else
  1326.  
  1327.  
  1328.                                     if (userInput[8] > userInput[9])
  1329.                                         max = userInput[8]; //userInput[8] is max
  1330.                                     else
  1331.  
  1332.                                         max = userInput[9]; //userInput[9] is max
  1333.                         else
  1334.  
  1335.  
  1336.                             if (userInput[6] > userInput[7])
  1337.  
  1338.                                 if (userInput[6] > userInput[8])
  1339.  
  1340.                                     if (userInput[6] > userInput[9])
  1341.                                         max = userInput[6]; //userInput[6] is max
  1342.                                     else
  1343.  
  1344.                                         max = userInput[9]; //userInput[9] is max
  1345.                                 else
  1346.  
  1347.  
  1348.                                     if (userInput[8] > userInput[9])
  1349.                                         max = userInput[8]; //userInput[8] is max
  1350.                                     else
  1351.  
  1352.                                         max = userInput[9]; //userInput[9] is max
  1353.                             else
  1354.  
  1355.  
  1356.                                 if (userInput[7] > userInput[8])
  1357.  
  1358.                                     if (userInput[7] > userInput[9])
  1359.                                         max = userInput[7]; //userInput[7] is max
  1360.                                     else
  1361.  
  1362.                                         max = userInput[9]; //userInput[9] is max
  1363.                                 else
  1364.  
  1365.  
  1366.                                     if (userInput[8] > userInput[9])
  1367.                                         max = userInput[8]; //userInput[8] is max
  1368.                                     else
  1369.  
  1370.                                         max = userInput[9]; //userInput[9] is max
  1371.                     else
  1372.  
  1373.  
  1374.                         if (userInput[5] > userInput[6])
  1375.  
  1376.                             if (userInput[5] > userInput[7])
  1377.  
  1378.                                 if (userInput[5] > userInput[8])
  1379.  
  1380.                                     if (userInput[5] > userInput[9])
  1381.                                         max = userInput[5]; //userInput[5] is max
  1382.                                     else
  1383.  
  1384.                                         max = userInput[9]; //userInput[9] is max
  1385.                                 else
  1386.  
  1387.  
  1388.                                     if (userInput[8] > userInput[9])
  1389.                                         max = userInput[8]; //userInput[8] is max
  1390.                                     else
  1391.  
  1392.                                         max = userInput[9]; //userInput[9] is max
  1393.                             else
  1394.  
  1395.  
  1396.                                 if (userInput[7] > userInput[8])
  1397.  
  1398.                                     if (userInput[7] > userInput[9])
  1399.                                         max = userInput[7]; //userInput[7] is max
  1400.                                     else
  1401.  
  1402.                                         max = userInput[9]; //userInput[9] is max
  1403.                                 else
  1404.  
  1405.  
  1406.                                     if (userInput[8] > userInput[9])
  1407.                                         max = userInput[8]; //userInput[8] is max
  1408.                                     else
  1409.  
  1410.                                         max = userInput[9]; //userInput[9] is max
  1411.                         else
  1412.  
  1413.  
  1414.                             if (userInput[6] > userInput[7])
  1415.  
  1416.                                 if (userInput[6] > userInput[8])
  1417.  
  1418.                                     if (userInput[6] > userInput[9])
  1419.                                         max = userInput[6]; //userInput[6] is max
  1420.                                     else
  1421.  
  1422.                                         max = userInput[9]; //userInput[9] is max
  1423.                                 else
  1424.  
  1425.  
  1426.                                     if (userInput[8] > userInput[9])
  1427.                                         max = userInput[8]; //userInput[8] is max
  1428.                                     else
  1429.  
  1430.                                         max = userInput[9]; //userInput[9] is max
  1431.                             else
  1432.  
  1433.  
  1434.                                 if (userInput[7] > userInput[8])
  1435.  
  1436.                                     if (userInput[7] > userInput[9])
  1437.                                         max = userInput[7]; //userInput[7] is max
  1438.                                     else
  1439.  
  1440.                                         max = userInput[9]; //userInput[9] is max
  1441.                                 else
  1442.  
  1443.  
  1444.                                     if (userInput[8] > userInput[9])
  1445.                                         max = userInput[8]; //userInput[8] is max
  1446.                                     else
  1447.  
  1448.                                         max = userInput[9]; //userInput[9] is max
  1449.                 else
  1450.  
  1451.  
  1452.                     if (userInput[4] > userInput[5])
  1453.  
  1454.                         if (userInput[4] > userInput[6])
  1455.  
  1456.                             if (userInput[4] > userInput[7])
  1457.  
  1458.                                 if (userInput[4] > userInput[8])
  1459.  
  1460.                                     if (userInput[4] > userInput[9])
  1461.                                         max = userInput[4]; //userInput[4] is max
  1462.                                     else
  1463.  
  1464.                                         max = userInput[9]; //userInput[9] is max
  1465.                                 else
  1466.  
  1467.  
  1468.                                     if (userInput[8] > userInput[9])
  1469.                                         max = userInput[8]; //userInput[8] is max
  1470.                                     else
  1471.  
  1472.                                         max = userInput[9]; //userInput[9] is max
  1473.                             else
  1474.  
  1475.  
  1476.                                 if (userInput[7] > userInput[8])
  1477.  
  1478.                                     if (userInput[7] > userInput[9])
  1479.                                         max = userInput[7]; //userInput[7] is max
  1480.                                     else
  1481.  
  1482.                                         max = userInput[9]; //userInput[9] is max
  1483.                                 else
  1484.  
  1485.  
  1486.                                     if (userInput[8] > userInput[9])
  1487.                                         max = userInput[8]; //userInput[8] is max
  1488.                                     else
  1489.  
  1490.                                         max = userInput[9]; //userInput[9] is max
  1491.                         else
  1492.  
  1493.  
  1494.                             if (userInput[6] > userInput[7])
  1495.  
  1496.                                 if (userInput[6] > userInput[8])
  1497.  
  1498.                                     if (userInput[6] > userInput[9])
  1499.                                         max = userInput[6]; //userInput[6] is max
  1500.                                     else
  1501.  
  1502.                                         max = userInput[9]; //userInput[9] is max
  1503.                                 else
  1504.  
  1505.  
  1506.                                     if (userInput[8] > userInput[9])
  1507.                                         max = userInput[8]; //userInput[8] is max
  1508.                                     else
  1509.  
  1510.                                         max = userInput[9]; //userInput[9] is max
  1511.                             else
  1512.  
  1513.  
  1514.                                 if (userInput[7] > userInput[8])
  1515.  
  1516.                                     if (userInput[7] > userInput[9])
  1517.                                         max = userInput[7]; //userInput[7] is max
  1518.                                     else
  1519.  
  1520.                                         max = userInput[9]; //userInput[9] is max
  1521.                                 else
  1522.  
  1523.  
  1524.                                     if (userInput[8] > userInput[9])
  1525.                                         max = userInput[8]; //userInput[8] is max
  1526.                                     else
  1527.  
  1528.                                         max = userInput[9]; //userInput[9] is max
  1529.                     else
  1530.  
  1531.  
  1532.                         if (userInput[5] > userInput[6])
  1533.  
  1534.                             if (userInput[5] > userInput[7])
  1535.  
  1536.                                 if (userInput[5] > userInput[8])
  1537.  
  1538.                                     if (userInput[5] > userInput[9])
  1539.                                         max = userInput[5]; //userInput[5] is max
  1540.                                     else
  1541.  
  1542.                                         max = userInput[9]; //userInput[9] is max
  1543.                                 else
  1544.  
  1545.  
  1546.                                     if (userInput[8] > userInput[9])
  1547.                                         max = userInput[8]; //userInput[8] is max
  1548.                                     else
  1549.  
  1550.                                         max = userInput[9]; //userInput[9] is max
  1551.                             else
  1552.  
  1553.  
  1554.                                 if (userInput[7] > userInput[8])
  1555.  
  1556.                                     if (userInput[7] > userInput[9])
  1557.                                         max = userInput[7]; //userInput[7] is max
  1558.                                     else
  1559.  
  1560.                                         max = userInput[9]; //userInput[9] is max
  1561.                                 else
  1562.  
  1563.  
  1564.                                     if (userInput[8] > userInput[9])
  1565.                                         max = userInput[8]; //userInput[8] is max
  1566.                                     else
  1567.  
  1568.                                         max = userInput[9]; //userInput[9] is max
  1569.                         else
  1570.  
  1571.  
  1572.                             if (userInput[6] > userInput[7])
  1573.  
  1574.                                 if (userInput[6] > userInput[8])
  1575.  
  1576.                                     if (userInput[6] > userInput[9])
  1577.                                         max = userInput[6]; //userInput[6] is max
  1578.                                     else
  1579.  
  1580.                                         max = userInput[9]; //userInput[9] is max
  1581.                                 else
  1582.  
  1583.  
  1584.                                     if (userInput[8] > userInput[9])
  1585.                                         max = userInput[8]; //userInput[8] is max
  1586.                                     else
  1587.  
  1588.                                         max = userInput[9]; //userInput[9] is max
  1589.                             else
  1590.  
  1591.  
  1592.                                 if (userInput[7] > userInput[8])
  1593.  
  1594.                                     if (userInput[7] > userInput[9])
  1595.                                         max = userInput[7]; //userInput[7] is max
  1596.                                     else
  1597.  
  1598.                                         max = userInput[9]; //userInput[9] is max
  1599.                                 else
  1600.  
  1601.  
  1602.                                     if (userInput[8] > userInput[9])
  1603.                                         max = userInput[8]; //userInput[8] is max
  1604.                                     else
  1605.  
  1606.                                         max = userInput[9]; //userInput[9] is max
  1607.             else
  1608.  
  1609.  
  1610.                 if (userInput[3] > userInput[4])
  1611.  
  1612.                     if (userInput[3] > userInput[5])
  1613.  
  1614.                         if (userInput[3] > userInput[6])
  1615.  
  1616.                             if (userInput[3] > userInput[7])
  1617.  
  1618.                                 if (userInput[3] > userInput[8])
  1619.  
  1620.                                     if (userInput[3] > userInput[9])
  1621.                                         max = userInput[3]; //userInput[3] is max
  1622.                                     else
  1623.  
  1624.                                         max = userInput[9]; //userInput[9] is max
  1625.                                 else
  1626.  
  1627.  
  1628.                                     if (userInput[8] > userInput[9])
  1629.                                         max = userInput[8]; //userInput[8] is max
  1630.                                     else
  1631.  
  1632.                                         max = userInput[9]; //userInput[9] is max
  1633.                             else
  1634.  
  1635.  
  1636.                                 if (userInput[7] > userInput[8])
  1637.  
  1638.                                     if (userInput[7] > userInput[9])
  1639.                                         max = userInput[7]; //userInput[7] is max
  1640.                                     else
  1641.  
  1642.                                         max = userInput[9]; //userInput[9] is max
  1643.                                 else
  1644.  
  1645.  
  1646.                                     if (userInput[8] > userInput[9])
  1647.                                         max = userInput[8]; //userInput[8] is max
  1648.                                     else
  1649.  
  1650.                                         max = userInput[9]; //userInput[9] is max
  1651.                         else
  1652.  
  1653.  
  1654.                             if (userInput[6] > userInput[7])
  1655.  
  1656.                                 if (userInput[6] > userInput[8])
  1657.  
  1658.                                     if (userInput[6] > userInput[9])
  1659.                                         max = userInput[6]; //userInput[6] is max
  1660.                                     else
  1661.  
  1662.                                         max = userInput[9]; //userInput[9] is max
  1663.                                 else
  1664.  
  1665.  
  1666.                                     if (userInput[8] > userInput[9])
  1667.                                         max = userInput[8]; //userInput[8] is max
  1668.                                     else
  1669.  
  1670.                                         max = userInput[9]; //userInput[9] is max
  1671.                             else
  1672.  
  1673.  
  1674.                                 if (userInput[7] > userInput[8])
  1675.  
  1676.                                     if (userInput[7] > userInput[9])
  1677.                                         max = userInput[7]; //userInput[7] is max
  1678.                                     else
  1679.  
  1680.                                         max = userInput[9]; //userInput[9] is max
  1681.                                 else
  1682.  
  1683.  
  1684.                                     if (userInput[8] > userInput[9])
  1685.                                         max = userInput[8]; //userInput[8] is max
  1686.                                     else
  1687.  
  1688.                                         max = userInput[9]; //userInput[9] is max
  1689.                     else
  1690.  
  1691.  
  1692.                         if (userInput[5] > userInput[6])
  1693.  
  1694.                             if (userInput[5] > userInput[7])
  1695.  
  1696.                                 if (userInput[5] > userInput[8])
  1697.  
  1698.                                     if (userInput[5] > userInput[9])
  1699.                                         max = userInput[5]; //userInput[5] is max
  1700.                                     else
  1701.  
  1702.                                         max = userInput[9]; //userInput[9] is max
  1703.                                 else
  1704.  
  1705.  
  1706.                                     if (userInput[8] > userInput[9])
  1707.                                         max = userInput[8]; //userInput[8] is max
  1708.                                     else
  1709.  
  1710.                                         max = userInput[9]; //userInput[9] is max
  1711.                             else
  1712.  
  1713.  
  1714.                                 if (userInput[7] > userInput[8])
  1715.  
  1716.                                     if (userInput[7] > userInput[9])
  1717.                                         max = userInput[7]; //userInput[7] is max
  1718.                                     else
  1719.  
  1720.                                         max = userInput[9]; //userInput[9] is max
  1721.                                 else
  1722.  
  1723.  
  1724.                                     if (userInput[8] > userInput[9])
  1725.                                         max = userInput[8]; //userInput[8] is max
  1726.                                     else
  1727.  
  1728.                                         max = userInput[9]; //userInput[9] is max
  1729.                         else
  1730.  
  1731.  
  1732.                             if (userInput[6] > userInput[7])
  1733.  
  1734.                                 if (userInput[6] > userInput[8])
  1735.  
  1736.                                     if (userInput[6] > userInput[9])
  1737.                                         max = userInput[6]; //userInput[6] is max
  1738.                                     else
  1739.  
  1740.                                         max = userInput[9]; //userInput[9] is max
  1741.                                 else
  1742.  
  1743.  
  1744.                                     if (userInput[8] > userInput[9])
  1745.                                         max = userInput[8]; //userInput[8] is max
  1746.                                     else
  1747.  
  1748.                                         max = userInput[9]; //userInput[9] is max
  1749.                             else
  1750.  
  1751.  
  1752.                                 if (userInput[7] > userInput[8])
  1753.  
  1754.                                     if (userInput[7] > userInput[9])
  1755.                                         max = userInput[7]; //userInput[7] is max
  1756.                                     else
  1757.  
  1758.                                         max = userInput[9]; //userInput[9] is max
  1759.                                 else
  1760.  
  1761.  
  1762.                                     if (userInput[8] > userInput[9])
  1763.                                         max = userInput[8]; //userInput[8] is max
  1764.                                     else
  1765.  
  1766.                                         max = userInput[9]; //userInput[9] is max
  1767.                 else
  1768.  
  1769.  
  1770.                     if (userInput[4] > userInput[5])
  1771.  
  1772.                         if (userInput[4] > userInput[6])
  1773.  
  1774.                             if (userInput[4] > userInput[7])
  1775.  
  1776.                                 if (userInput[4] > userInput[8])
  1777.  
  1778.                                     if (userInput[4] > userInput[9])
  1779.                                         max = userInput[4]; //userInput[4] is max
  1780.                                     else
  1781.  
  1782.                                         max = userInput[9]; //userInput[9] is max
  1783.                                 else
  1784.  
  1785.  
  1786.                                     if (userInput[8] > userInput[9])
  1787.                                         max = userInput[8]; //userInput[8] is max
  1788.                                     else
  1789.  
  1790.                                         max = userInput[9]; //userInput[9] is max
  1791.                             else
  1792.  
  1793.  
  1794.                                 if (userInput[7] > userInput[8])
  1795.  
  1796.                                     if (userInput[7] > userInput[9])
  1797.                                         max = userInput[7]; //userInput[7] is max
  1798.                                     else
  1799.  
  1800.                                         max = userInput[9]; //userInput[9] is max
  1801.                                 else
  1802.  
  1803.  
  1804.                                     if (userInput[8] > userInput[9])
  1805.                                         max = userInput[8]; //userInput[8] is max
  1806.                                     else
  1807.  
  1808.                                         max = userInput[9]; //userInput[9] is max
  1809.                         else
  1810.  
  1811.  
  1812.                             if (userInput[6] > userInput[7])
  1813.  
  1814.                                 if (userInput[6] > userInput[8])
  1815.  
  1816.                                     if (userInput[6] > userInput[9])
  1817.                                         max = userInput[6]; //userInput[6] is max
  1818.                                     else
  1819.  
  1820.                                         max = userInput[9]; //userInput[9] is max
  1821.                                 else
  1822.  
  1823.  
  1824.                                     if (userInput[8] > userInput[9])
  1825.                                         max = userInput[8]; //userInput[8] is max
  1826.                                     else
  1827.  
  1828.                                         max = userInput[9]; //userInput[9] is max
  1829.                             else
  1830.  
  1831.  
  1832.                                 if (userInput[7] > userInput[8])
  1833.  
  1834.                                     if (userInput[7] > userInput[9])
  1835.                                         max = userInput[7]; //userInput[7] is max
  1836.                                     else
  1837.  
  1838.                                         max = userInput[9]; //userInput[9] is max
  1839.                                 else
  1840.  
  1841.  
  1842.                                     if (userInput[8] > userInput[9])
  1843.                                         max = userInput[8]; //userInput[8] is max
  1844.                                     else
  1845.  
  1846.                                         max = userInput[9]; //userInput[9] is max
  1847.                     else
  1848.  
  1849.  
  1850.                         if (userInput[5] > userInput[6])
  1851.  
  1852.                             if (userInput[5] > userInput[7])
  1853.  
  1854.                                 if (userInput[5] > userInput[8])
  1855.  
  1856.                                     if (userInput[5] > userInput[9])
  1857.                                         max = userInput[5]; //userInput[5] is max
  1858.                                     else
  1859.  
  1860.                                         max = userInput[9]; //userInput[9] is max
  1861.                                 else
  1862.  
  1863.  
  1864.                                     if (userInput[8] > userInput[9])
  1865.                                         max = userInput[8]; //userInput[8] is max
  1866.                                     else
  1867.  
  1868.                                         max = userInput[9]; //userInput[9] is max
  1869.                             else
  1870.  
  1871.  
  1872.                                 if (userInput[7] > userInput[8])
  1873.  
  1874.                                     if (userInput[7] > userInput[9])
  1875.                                         max = userInput[7]; //userInput[7] is max
  1876.                                     else
  1877.  
  1878.                                         max = userInput[9]; //userInput[9] is max
  1879.                                 else
  1880.  
  1881.  
  1882.                                     if (userInput[8] > userInput[9])
  1883.                                         max = userInput[8]; //userInput[8] is max
  1884.                                     else
  1885.  
  1886.                                         max = userInput[9]; //userInput[9] is max
  1887.                         else
  1888.  
  1889.  
  1890.                             if (userInput[6] > userInput[7])
  1891.  
  1892.                                 if (userInput[6] > userInput[8])
  1893.  
  1894.                                     if (userInput[6] > userInput[9])
  1895.                                         max = userInput[6]; //userInput[6] is max
  1896.                                     else
  1897.  
  1898.                                         max = userInput[9]; //userInput[9] is max
  1899.                                 else
  1900.  
  1901.  
  1902.                                     if (userInput[8] > userInput[9])
  1903.                                         max = userInput[8]; //userInput[8] is max
  1904.                                     else
  1905.  
  1906.                                         max = userInput[9]; //userInput[9] is max
  1907.                             else
  1908.  
  1909.  
  1910.                                 if (userInput[7] > userInput[8])
  1911.  
  1912.                                     if (userInput[7] > userInput[9])
  1913.                                         max = userInput[7]; //userInput[7] is max
  1914.                                     else
  1915.  
  1916.                                         max = userInput[9]; //userInput[9] is max
  1917.                                 else
  1918.  
  1919.  
  1920.                                     if (userInput[8] > userInput[9])
  1921.                                         max = userInput[8]; //userInput[8] is max
  1922.                                     else
  1923.  
  1924.                                         max = userInput[9]; //userInput[9] is max
  1925.         else
  1926.  
  1927.  
  1928.             if (userInput[2] > userInput[3])
  1929.  
  1930.                 if (userInput[2] > userInput[4])
  1931.  
  1932.                     if (userInput[2] > userInput[5])
  1933.  
  1934.                         if (userInput[2] > userInput[6])
  1935.  
  1936.                             if (userInput[2] > userInput[7])
  1937.  
  1938.                                 if (userInput[2] > userInput[8])
  1939.  
  1940.                                     if (userInput[2] > userInput[9])
  1941.                                         max = userInput[2]; //userInput[2] is max
  1942.                                     else
  1943.  
  1944.                                         max = userInput[9]; //userInput[9] is max
  1945.                                 else
  1946.  
  1947.  
  1948.                                     if (userInput[8] > userInput[9])
  1949.                                         max = userInput[8]; //userInput[8] is max
  1950.                                     else
  1951.  
  1952.                                         max = userInput[9]; //userInput[9] is max
  1953.                             else
  1954.  
  1955.  
  1956.                                 if (userInput[7] > userInput[8])
  1957.  
  1958.                                     if (userInput[7] > userInput[9])
  1959.                                         max = userInput[7]; //userInput[7] is max
  1960.                                     else
  1961.  
  1962.                                         max = userInput[9]; //userInput[9] is max
  1963.                                 else
  1964.  
  1965.  
  1966.                                     if (userInput[8] > userInput[9])
  1967.                                         max = userInput[8]; //userInput[8] is max
  1968.                                     else
  1969.  
  1970.                                         max = userInput[9]; //userInput[9] is max
  1971.                         else
  1972.  
  1973.  
  1974.                             if (userInput[6] > userInput[7])
  1975.  
  1976.                                 if (userInput[6] > userInput[8])
  1977.  
  1978.                                     if (userInput[6] > userInput[9])
  1979.                                         max = userInput[6]; //userInput[6] is max
  1980.                                     else
  1981.  
  1982.                                         max = userInput[9]; //userInput[9] is max
  1983.                                 else
  1984.  
  1985.  
  1986.                                     if (userInput[8] > userInput[9])
  1987.                                         max = userInput[8]; //userInput[8] is max
  1988.                                     else
  1989.  
  1990.                                         max = userInput[9]; //userInput[9] is max
  1991.                             else
  1992.  
  1993.  
  1994.                                 if (userInput[7] > userInput[8])
  1995.  
  1996.                                     if (userInput[7] > userInput[9])
  1997.                                         max = userInput[7]; //userInput[7] is max
  1998.                                     else
  1999.  
  2000.                                         max = userInput[9]; //userInput[9] is max
  2001.                                 else
  2002.  
  2003.  
  2004.                                     if (userInput[8] > userInput[9])
  2005.                                         max = userInput[8]; //userInput[8] is max
  2006.                                     else
  2007.  
  2008.                                         max = userInput[9]; //userInput[9] is max
  2009.                     else
  2010.  
  2011.  
  2012.                         if (userInput[5] > userInput[6])
  2013.  
  2014.                             if (userInput[5] > userInput[7])
  2015.  
  2016.                                 if (userInput[5] > userInput[8])
  2017.  
  2018.                                     if (userInput[5] > userInput[9])
  2019.                                         max = userInput[5]; //userInput[5] is max
  2020.                                     else
  2021.  
  2022.                                         max = userInput[9]; //userInput[9] is max
  2023.                                 else
  2024.  
  2025.  
  2026.                                     if (userInput[8] > userInput[9])
  2027.                                         max = userInput[8]; //userInput[8] is max
  2028.                                     else
  2029.  
  2030.                                         max = userInput[9]; //userInput[9] is max
  2031.                             else
  2032.  
  2033.  
  2034.                                 if (userInput[7] > userInput[8])
  2035.  
  2036.                                     if (userInput[7] > userInput[9])
  2037.                                         max = userInput[7]; //userInput[7] is max
  2038.                                     else
  2039.  
  2040.                                         max = userInput[9]; //userInput[9] is max
  2041.                                 else
  2042.  
  2043.  
  2044.                                     if (userInput[8] > userInput[9])
  2045.                                         max = userInput[8]; //userInput[8] is max
  2046.                                     else
  2047.  
  2048.                                         max = userInput[9]; //userInput[9] is max
  2049.                         else
  2050.  
  2051.  
  2052.                             if (userInput[6] > userInput[7])
  2053.  
  2054.                                 if (userInput[6] > userInput[8])
  2055.  
  2056.                                     if (userInput[6] > userInput[9])
  2057.                                         max = userInput[6]; //userInput[6] is max
  2058.                                     else
  2059.  
  2060.                                         max = userInput[9]; //userInput[9] is max
  2061.                                 else
  2062.  
  2063.  
  2064.                                     if (userInput[8] > userInput[9])
  2065.                                         max = userInput[8]; //userInput[8] is max
  2066.                                     else
  2067.  
  2068.                                         max = userInput[9]; //userInput[9] is max
  2069.                             else
  2070.  
  2071.  
  2072.                                 if (userInput[7] > userInput[8])
  2073.  
  2074.                                     if (userInput[7] > userInput[9])
  2075.                                         max = userInput[7]; //userInput[7] is max
  2076.                                     else
  2077.  
  2078.                                         max = userInput[9]; //userInput[9] is max
  2079.                                 else
  2080.  
  2081.  
  2082.                                     if (userInput[8] > userInput[9])
  2083.                                         max = userInput[8]; //userInput[8] is max
  2084.                                     else
  2085.  
  2086.                                         max = userInput[9]; //userInput[9] is max
  2087.                 else
  2088.  
  2089.  
  2090.                     if (userInput[4] > userInput[5])
  2091.  
  2092.                         if (userInput[4] > userInput[6])
  2093.  
  2094.                             if (userInput[4] > userInput[7])
  2095.  
  2096.                                 if (userInput[4] > userInput[8])
  2097.  
  2098.                                     if (userInput[4] > userInput[9])
  2099.                                         max = userInput[4]; //userInput[4] is max
  2100.                                     else
  2101.  
  2102.                                         max = userInput[9]; //userInput[9] is max
  2103.                                 else
  2104.  
  2105.  
  2106.                                     if (userInput[8] > userInput[9])
  2107.                                         max = userInput[8]; //userInput[8] is max
  2108.                                     else
  2109.  
  2110.                                         max = userInput[9]; //userInput[9] is max
  2111.                             else
  2112.  
  2113.  
  2114.                                 if (userInput[7] > userInput[8])
  2115.  
  2116.                                     if (userInput[7] > userInput[9])
  2117.                                         max = userInput[7]; //userInput[7] is max
  2118.                                     else
  2119.  
  2120.                                         max = userInput[9]; //userInput[9] is max
  2121.                                 else
  2122.  
  2123.  
  2124.                                     if (userInput[8] > userInput[9])
  2125.                                         max = userInput[8]; //userInput[8] is max
  2126.                                     else
  2127.  
  2128.                                         max = userInput[9]; //userInput[9] is max
  2129.                         else
  2130.  
  2131.  
  2132.                             if (userInput[6] > userInput[7])
  2133.  
  2134.                                 if (userInput[6] > userInput[8])
  2135.  
  2136.                                     if (userInput[6] > userInput[9])
  2137.                                         max = userInput[6]; //userInput[6] is max
  2138.                                     else
  2139.  
  2140.                                         max = userInput[9]; //userInput[9] is max
  2141.                                 else
  2142.  
  2143.  
  2144.                                     if (userInput[8] > userInput[9])
  2145.                                         max = userInput[8]; //userInput[8] is max
  2146.                                     else
  2147.  
  2148.                                         max = userInput[9]; //userInput[9] is max
  2149.                             else
  2150.  
  2151.  
  2152.                                 if (userInput[7] > userInput[8])
  2153.  
  2154.                                     if (userInput[7] > userInput[9])
  2155.                                         max = userInput[7]; //userInput[7] is max
  2156.                                     else
  2157.  
  2158.                                         max = userInput[9]; //userInput[9] is max
  2159.                                 else
  2160.  
  2161.  
  2162.                                     if (userInput[8] > userInput[9])
  2163.                                         max = userInput[8]; //userInput[8] is max
  2164.                                     else
  2165.  
  2166.                                         max = userInput[9]; //userInput[9] is max
  2167.                     else
  2168.  
  2169.  
  2170.                         if (userInput[5] > userInput[6])
  2171.  
  2172.                             if (userInput[5] > userInput[7])
  2173.  
  2174.                                 if (userInput[5] > userInput[8])
  2175.  
  2176.                                     if (userInput[5] > userInput[9])
  2177.                                         max = userInput[5]; //userInput[5] is max
  2178.                                     else
  2179.  
  2180.                                         max = userInput[9]; //userInput[9] is max
  2181.                                 else
  2182.  
  2183.  
  2184.                                     if (userInput[8] > userInput[9])
  2185.                                         max = userInput[8]; //userInput[8] is max
  2186.                                     else
  2187.  
  2188.                                         max = userInput[9]; //userInput[9] is max
  2189.                             else
  2190.  
  2191.  
  2192.                                 if (userInput[7] > userInput[8])
  2193.  
  2194.                                     if (userInput[7] > userInput[9])
  2195.                                         max = userInput[7]; //userInput[7] is max
  2196.                                     else
  2197.  
  2198.                                         max = userInput[9]; //userInput[9] is max
  2199.                                 else
  2200.  
  2201.  
  2202.                                     if (userInput[8] > userInput[9])
  2203.                                         max = userInput[8]; //userInput[8] is max
  2204.                                     else
  2205.  
  2206.                                         max = userInput[9]; //userInput[9] is max
  2207.                         else
  2208.  
  2209.  
  2210.                             if (userInput[6] > userInput[7])
  2211.  
  2212.                                 if (userInput[6] > userInput[8])
  2213.  
  2214.                                     if (userInput[6] > userInput[9])
  2215.                                         max = userInput[6]; //userInput[6] is max
  2216.                                     else
  2217.  
  2218.                                         max = userInput[9]; //userInput[9] is max
  2219.                                 else
  2220.  
  2221.  
  2222.                                     if (userInput[8] > userInput[9])
  2223.                                         max = userInput[8]; //userInput[8] is max
  2224.                                     else
  2225.  
  2226.                                         max = userInput[9]; //userInput[9] is max
  2227.                             else
  2228.  
  2229.  
  2230.                                 if (userInput[7] > userInput[8])
  2231.  
  2232.                                     if (userInput[7] > userInput[9])
  2233.                                         max = userInput[7]; //userInput[7] is max
  2234.                                     else
  2235.  
  2236.                                         max = userInput[9]; //userInput[9] is max
  2237.                                 else
  2238.  
  2239.  
  2240.                                     if (userInput[8] > userInput[9])
  2241.                                         max = userInput[8]; //userInput[8] is max
  2242.                                     else
  2243.  
  2244.                                         max = userInput[9]; //userInput[9] is max
  2245.             else
  2246.  
  2247.  
  2248.                 if (userInput[3] > userInput[4])
  2249.  
  2250.                     if (userInput[3] > userInput[5])
  2251.  
  2252.                         if (userInput[3] > userInput[6])
  2253.  
  2254.                             if (userInput[3] > userInput[7])
  2255.  
  2256.                                 if (userInput[3] > userInput[8])
  2257.  
  2258.                                     if (userInput[3] > userInput[9])
  2259.                                         max = userInput[3]; //userInput[3] is max
  2260.                                     else
  2261.  
  2262.                                         max = userInput[9]; //userInput[9] is max
  2263.                                 else
  2264.  
  2265.  
  2266.                                     if (userInput[8] > userInput[9])
  2267.                                         max = userInput[8]; //userInput[8] is max
  2268.                                     else
  2269.  
  2270.                                         max = userInput[9]; //userInput[9] is max
  2271.                             else
  2272.  
  2273.  
  2274.                                 if (userInput[7] > userInput[8])
  2275.  
  2276.                                     if (userInput[7] > userInput[9])
  2277.                                         max = userInput[7]; //userInput[7] is max
  2278.                                     else
  2279.  
  2280.                                         max = userInput[9]; //userInput[9] is max
  2281.                                 else
  2282.  
  2283.  
  2284.                                     if (userInput[8] > userInput[9])
  2285.                                         max = userInput[8]; //userInput[8] is max
  2286.                                     else
  2287.  
  2288.                                         max = userInput[9]; //userInput[9] is max
  2289.                         else
  2290.  
  2291.  
  2292.                             if (userInput[6] > userInput[7])
  2293.  
  2294.                                 if (userInput[6] > userInput[8])
  2295.  
  2296.                                     if (userInput[6] > userInput[9])
  2297.                                         max = userInput[6]; //userInput[6] is max
  2298.                                     else
  2299.  
  2300.                                         max = userInput[9]; //userInput[9] is max
  2301.                                 else
  2302.  
  2303.  
  2304.                                     if (userInput[8] > userInput[9])
  2305.                                         max = userInput[8]; //userInput[8] is max
  2306.                                     else
  2307.  
  2308.                                         max = userInput[9]; //userInput[9] is max
  2309.                             else
  2310.  
  2311.  
  2312.                                 if (userInput[7] > userInput[8])
  2313.  
  2314.                                     if (userInput[7] > userInput[9])
  2315.                                         max = userInput[7]; //userInput[7] is max
  2316.                                     else
  2317.  
  2318.                                         max = userInput[9]; //userInput[9] is max
  2319.                                 else
  2320.  
  2321.  
  2322.                                     if (userInput[8] > userInput[9])
  2323.                                         max = userInput[8]; //userInput[8] is max
  2324.                                     else
  2325.  
  2326.                                         max = userInput[9]; //userInput[9] is max
  2327.                     else
  2328.  
  2329.  
  2330.                         if (userInput[5] > userInput[6])
  2331.  
  2332.                             if (userInput[5] > userInput[7])
  2333.  
  2334.                                 if (userInput[5] > userInput[8])
  2335.  
  2336.                                     if (userInput[5] > userInput[9])
  2337.                                         max = userInput[5]; //userInput[5] is max
  2338.                                     else
  2339.  
  2340.                                         max = userInput[9]; //userInput[9] is max
  2341.                                 else
  2342.  
  2343.  
  2344.                                     if (userInput[8] > userInput[9])
  2345.                                         max = userInput[8]; //userInput[8] is max
  2346.                                     else
  2347.  
  2348.                                         max = userInput[9]; //userInput[9] is max
  2349.                             else
  2350.  
  2351.  
  2352.                                 if (userInput[7] > userInput[8])
  2353.  
  2354.                                     if (userInput[7] > userInput[9])
  2355.                                         max = userInput[7]; //userInput[7] is max
  2356.                                     else
  2357.  
  2358.                                         max = userInput[9]; //userInput[9] is max
  2359.                                 else
  2360.  
  2361.  
  2362.                                     if (userInput[8] > userInput[9])
  2363.                                         max = userInput[8]; //userInput[8] is max
  2364.                                     else
  2365.  
  2366.                                         max = userInput[9]; //userInput[9] is max
  2367.                         else
  2368.  
  2369.  
  2370.                             if (userInput[6] > userInput[7])
  2371.  
  2372.                                 if (userInput[6] > userInput[8])
  2373.  
  2374.                                     if (userInput[6] > userInput[9])
  2375.                                         max = userInput[6]; //userInput[6] is max
  2376.                                     else
  2377.  
  2378.                                         max = userInput[9]; //userInput[9] is max
  2379.                                 else
  2380.  
  2381.  
  2382.                                     if (userInput[8] > userInput[9])
  2383.                                         max = userInput[8]; //userInput[8] is max
  2384.                                     else
  2385.  
  2386.                                         max = userInput[9]; //userInput[9] is max
  2387.                             else
  2388.  
  2389.  
  2390.                                 if (userInput[7] > userInput[8])
  2391.  
  2392.                                     if (userInput[7] > userInput[9])
  2393.                                         max = userInput[7]; //userInput[7] is max
  2394.                                     else
  2395.  
  2396.                                         max = userInput[9]; //userInput[9] is max
  2397.                                 else
  2398.  
  2399.  
  2400.                                     if (userInput[8] > userInput[9])
  2401.                                         max = userInput[8]; //userInput[8] is max
  2402.                                     else
  2403.  
  2404.                                         max = userInput[9]; //userInput[9] is max
  2405.                 else
  2406.  
  2407.  
  2408.                     if (userInput[4] > userInput[5])
  2409.  
  2410.                         if (userInput[4] > userInput[6])
  2411.  
  2412.                             if (userInput[4] > userInput[7])
  2413.  
  2414.                                 if (userInput[4] > userInput[8])
  2415.  
  2416.                                     if (userInput[4] > userInput[9])
  2417.                                         max = userInput[4]; //userInput[4] is max
  2418.                                     else
  2419.  
  2420.                                         max = userInput[9]; //userInput[9] is max
  2421.                                 else
  2422.  
  2423.  
  2424.                                     if (userInput[8] > userInput[9])
  2425.                                         max = userInput[8]; //userInput[8] is max
  2426.                                     else
  2427.  
  2428.                                         max = userInput[9]; //userInput[9] is max
  2429.                             else
  2430.  
  2431.  
  2432.                                 if (userInput[7] > userInput[8])
  2433.  
  2434.                                     if (userInput[7] > userInput[9])
  2435.                                         max = userInput[7]; //userInput[7] is max
  2436.                                     else
  2437.  
  2438.                                         max = userInput[9]; //userInput[9] is max
  2439.                                 else
  2440.  
  2441.  
  2442.                                     if (userInput[8] > userInput[9])
  2443.                                         max = userInput[8]; //userInput[8] is max
  2444.                                     else
  2445.  
  2446.                                         max = userInput[9]; //userInput[9] is max
  2447.                         else
  2448.  
  2449.  
  2450.                             if (userInput[6] > userInput[7])
  2451.  
  2452.                                 if (userInput[6] > userInput[8])
  2453.  
  2454.                                     if (userInput[6] > userInput[9])
  2455.                                         max = userInput[6]; //userInput[6] is max
  2456.                                     else
  2457.  
  2458.                                         max = userInput[9]; //userInput[9] is max
  2459.                                 else
  2460.  
  2461.  
  2462.                                     if (userInput[8] > userInput[9])
  2463.                                         max = userInput[8]; //userInput[8] is max
  2464.                                     else
  2465.  
  2466.                                         max = userInput[9]; //userInput[9] is max
  2467.                             else
  2468.  
  2469.  
  2470.                                 if (userInput[7] > userInput[8])
  2471.  
  2472.                                     if (userInput[7] > userInput[9])
  2473.                                         max = userInput[7]; //userInput[7] is max
  2474.                                     else
  2475.  
  2476.                                         max = userInput[9]; //userInput[9] is max
  2477.                                 else
  2478.  
  2479.  
  2480.                                     if (userInput[8] > userInput[9])
  2481.                                         max = userInput[8]; //userInput[8] is max
  2482.                                     else
  2483.  
  2484.                                         max = userInput[9]; //userInput[9] is max
  2485.                     else
  2486.  
  2487.  
  2488.                         if (userInput[5] > userInput[6])
  2489.  
  2490.                             if (userInput[5] > userInput[7])
  2491.  
  2492.                                 if (userInput[5] > userInput[8])
  2493.  
  2494.                                     if (userInput[5] > userInput[9])
  2495.                                         max = userInput[5]; //userInput[5] is max
  2496.                                     else
  2497.  
  2498.                                         max = userInput[9]; //userInput[9] is max
  2499.                                 else
  2500.  
  2501.  
  2502.                                     if (userInput[8] > userInput[9])
  2503.                                         max = userInput[8]; //userInput[8] is max
  2504.                                     else
  2505.  
  2506.                                         max = userInput[9]; //userInput[9] is max
  2507.                             else
  2508.  
  2509.  
  2510.                                 if (userInput[7] > userInput[8])
  2511.  
  2512.                                     if (userInput[7] > userInput[9])
  2513.                                         max = userInput[7]; //userInput[7] is max
  2514.                                     else
  2515.  
  2516.                                         max = userInput[9]; //userInput[9] is max
  2517.                                 else
  2518.  
  2519.  
  2520.                                     if (userInput[8] > userInput[9])
  2521.                                         max = userInput[8]; //userInput[8] is max
  2522.                                     else
  2523.  
  2524.                                         max = userInput[9]; //userInput[9] is max
  2525.                         else
  2526.  
  2527.  
  2528.                             if (userInput[6] > userInput[7])
  2529.  
  2530.                                 if (userInput[6] > userInput[8])
  2531.  
  2532.                                     if (userInput[6] > userInput[9])
  2533.                                         max = userInput[6]; //userInput[6] is max
  2534.                                     else
  2535.  
  2536.                                         max = userInput[9]; //userInput[9] is max
  2537.                                 else
  2538.  
  2539.  
  2540.                                     if (userInput[8] > userInput[9])
  2541.                                         max = userInput[8]; //userInput[8] is max
  2542.                                     else
  2543.  
  2544.                                         max = userInput[9]; //userInput[9] is max
  2545.                             else
  2546.  
  2547.  
  2548.                                 if (userInput[7] > userInput[8])
  2549.  
  2550.                                     if (userInput[7] > userInput[9])
  2551.                                         max = userInput[7]; //userInput[7] is max
  2552.                                     else
  2553.  
  2554.                                         max = userInput[9]; //userInput[9] is max
  2555.                                 else
  2556.  
  2557.  
  2558.                                     if (userInput[8] > userInput[9])
  2559.                                         max = userInput[8]; //userInput[8] is max
  2560.                                     else
  2561.  
  2562.                                         max = userInput[9]; //userInput[9] is max
  2563.     if (userInput[0] < userInput[1])
  2564.  
  2565.         if (userInput[0] < userInput[2])
  2566.  
  2567.             if (userInput[0] < userInput[3])
  2568.  
  2569.                 if (userInput[0] < userInput[4])
  2570.  
  2571.                     if (userInput[0] < userInput[5])
  2572.  
  2573.                         if (userInput[0] < userInput[6])
  2574.  
  2575.                             if (userInput[0] < userInput[7])
  2576.  
  2577.                                 if (userInput[0] < userInput[8])
  2578.  
  2579.                                     if (userInput[0] < userInput[9])
  2580.                                         min = userInput[0]; //userInput[0] is min
  2581.                                     else
  2582.  
  2583.                                         min = userInput[9]; //userInput[9] is min
  2584.                                 else
  2585.  
  2586.  
  2587.                                     if (userInput[8] < userInput[9])
  2588.                                         min = userInput[8]; //userInput[8] is min
  2589.                                     else
  2590.  
  2591.                                         min = userInput[9]; //userInput[9] is min
  2592.                             else
  2593.  
  2594.  
  2595.                                 if (userInput[7] < userInput[8])
  2596.  
  2597.                                     if (userInput[7] < userInput[9])
  2598.                                         min = userInput[7]; //userInput[7] is min
  2599.                                     else
  2600.  
  2601.                                         min = userInput[9]; //userInput[9] is min
  2602.                                 else
  2603.  
  2604.  
  2605.                                     if (userInput[8] < userInput[9])
  2606.                                         min = userInput[8]; //userInput[8] is min
  2607.                                     else
  2608.  
  2609.                                         min = userInput[9]; //userInput[9] is min
  2610.                         else
  2611.  
  2612.  
  2613.                             if (userInput[6] < userInput[7])
  2614.  
  2615.                                 if (userInput[6] < userInput[8])
  2616.  
  2617.                                     if (userInput[6] < userInput[9])
  2618.                                         min = userInput[6]; //userInput[6] is min
  2619.                                     else
  2620.  
  2621.                                         min = userInput[9]; //userInput[9] is min
  2622.                                 else
  2623.  
  2624.  
  2625.                                     if (userInput[8] < userInput[9])
  2626.                                         min = userInput[8]; //userInput[8] is min
  2627.                                     else
  2628.  
  2629.                                         min = userInput[9]; //userInput[9] is min
  2630.                             else
  2631.  
  2632.  
  2633.                                 if (userInput[7] < userInput[8])
  2634.  
  2635.                                     if (userInput[7] < userInput[9])
  2636.                                         min = userInput[7]; //userInput[7] is min
  2637.                                     else
  2638.  
  2639.                                         min = userInput[9]; //userInput[9] is min
  2640.                                 else
  2641.  
  2642.  
  2643.                                     if (userInput[8] < userInput[9])
  2644.                                         min = userInput[8]; //userInput[8] is min
  2645.                                     else
  2646.  
  2647.                                         min = userInput[9]; //userInput[9] is min
  2648.                     else
  2649.  
  2650.  
  2651.                         if (userInput[5] < userInput[6])
  2652.  
  2653.                             if (userInput[5] < userInput[7])
  2654.  
  2655.                                 if (userInput[5] < userInput[8])
  2656.  
  2657.                                     if (userInput[5] < userInput[9])
  2658.                                         min = userInput[5]; //userInput[5] is min
  2659.                                     else
  2660.  
  2661.                                         min = userInput[9]; //userInput[9] is min
  2662.                                 else
  2663.  
  2664.  
  2665.                                     if (userInput[8] < userInput[9])
  2666.                                         min = userInput[8]; //userInput[8] is min
  2667.                                     else
  2668.  
  2669.                                         min = userInput[9]; //userInput[9] is min
  2670.                             else
  2671.  
  2672.  
  2673.                                 if (userInput[7] < userInput[8])
  2674.  
  2675.                                     if (userInput[7] < userInput[9])
  2676.                                         min = userInput[7]; //userInput[7] is min
  2677.                                     else
  2678.  
  2679.                                         min = userInput[9]; //userInput[9] is min
  2680.                                 else
  2681.  
  2682.  
  2683.                                     if (userInput[8] < userInput[9])
  2684.                                         min = userInput[8]; //userInput[8] is min
  2685.                                     else
  2686.  
  2687.                                         min = userInput[9]; //userInput[9] is min
  2688.                         else
  2689.  
  2690.  
  2691.                             if (userInput[6] < userInput[7])
  2692.  
  2693.                                 if (userInput[6] < userInput[8])
  2694.  
  2695.                                     if (userInput[6] < userInput[9])
  2696.                                         min = userInput[6]; //userInput[6] is min
  2697.                                     else
  2698.  
  2699.                                         min = userInput[9]; //userInput[9] is min
  2700.                                 else
  2701.  
  2702.  
  2703.                                     if (userInput[8] < userInput[9])
  2704.                                         min = userInput[8]; //userInput[8] is min
  2705.                                     else
  2706.  
  2707.                                         min = userInput[9]; //userInput[9] is min
  2708.                             else
  2709.  
  2710.  
  2711.                                 if (userInput[7] < userInput[8])
  2712.  
  2713.                                     if (userInput[7] < userInput[9])
  2714.                                         min = userInput[7]; //userInput[7] is min
  2715.                                     else
  2716.  
  2717.                                         min = userInput[9]; //userInput[9] is min
  2718.                                 else
  2719.  
  2720.  
  2721.                                     if (userInput[8] < userInput[9])
  2722.                                         min = userInput[8]; //userInput[8] is min
  2723.                                     else
  2724.  
  2725.                                         min = userInput[9]; //userInput[9] is min
  2726.                 else
  2727.  
  2728.  
  2729.                     if (userInput[4] < userInput[5])
  2730.  
  2731.                         if (userInput[4] < userInput[6])
  2732.  
  2733.                             if (userInput[4] < userInput[7])
  2734.  
  2735.                                 if (userInput[4] < userInput[8])
  2736.  
  2737.                                     if (userInput[4] < userInput[9])
  2738.                                         min = userInput[4]; //userInput[4] is min
  2739.                                     else
  2740.  
  2741.                                         min = userInput[9]; //userInput[9] is min
  2742.                                 else
  2743.  
  2744.  
  2745.                                     if (userInput[8] < userInput[9])
  2746.                                         min = userInput[8]; //userInput[8] is min
  2747.                                     else
  2748.  
  2749.                                         min = userInput[9]; //userInput[9] is min
  2750.                             else
  2751.  
  2752.  
  2753.                                 if (userInput[7] < userInput[8])
  2754.  
  2755.                                     if (userInput[7] < userInput[9])
  2756.                                         min = userInput[7]; //userInput[7] is min
  2757.                                     else
  2758.  
  2759.                                         min = userInput[9]; //userInput[9] is min
  2760.                                 else
  2761.  
  2762.  
  2763.                                     if (userInput[8] < userInput[9])
  2764.                                         min = userInput[8]; //userInput[8] is min
  2765.                                     else
  2766.  
  2767.                                         min = userInput[9]; //userInput[9] is min
  2768.                         else
  2769.  
  2770.  
  2771.                             if (userInput[6] < userInput[7])
  2772.  
  2773.                                 if (userInput[6] < userInput[8])
  2774.  
  2775.                                     if (userInput[6] < userInput[9])
  2776.                                         min = userInput[6]; //userInput[6] is min
  2777.                                     else
  2778.  
  2779.                                         min = userInput[9]; //userInput[9] is min
  2780.                                 else
  2781.  
  2782.  
  2783.                                     if (userInput[8] < userInput[9])
  2784.                                         min = userInput[8]; //userInput[8] is min
  2785.                                     else
  2786.  
  2787.                                         min = userInput[9]; //userInput[9] is min
  2788.                             else
  2789.  
  2790.  
  2791.                                 if (userInput[7] < userInput[8])
  2792.  
  2793.                                     if (userInput[7] < userInput[9])
  2794.                                         min = userInput[7]; //userInput[7] is min
  2795.                                     else
  2796.  
  2797.                                         min = userInput[9]; //userInput[9] is min
  2798.                                 else
  2799.  
  2800.  
  2801.                                     if (userInput[8] < userInput[9])
  2802.                                         min = userInput[8]; //userInput[8] is min
  2803.                                     else
  2804.  
  2805.                                         min = userInput[9]; //userInput[9] is min
  2806.                     else
  2807.  
  2808.  
  2809.                         if (userInput[5] < userInput[6])
  2810.  
  2811.                             if (userInput[5] < userInput[7])
  2812.  
  2813.                                 if (userInput[5] < userInput[8])
  2814.  
  2815.                                     if (userInput[5] < userInput[9])
  2816.                                         min = userInput[5]; //userInput[5] is min
  2817.                                     else
  2818.  
  2819.                                         min = userInput[9]; //userInput[9] is min
  2820.                                 else
  2821.  
  2822.  
  2823.                                     if (userInput[8] < userInput[9])
  2824.                                         min = userInput[8]; //userInput[8] is min
  2825.                                     else
  2826.  
  2827.                                         min = userInput[9]; //userInput[9] is min
  2828.                             else
  2829.  
  2830.  
  2831.                                 if (userInput[7] < userInput[8])
  2832.  
  2833.                                     if (userInput[7] < userInput[9])
  2834.                                         min = userInput[7]; //userInput[7] is min
  2835.                                     else
  2836.  
  2837.                                         min = userInput[9]; //userInput[9] is min
  2838.                                 else
  2839.  
  2840.  
  2841.                                     if (userInput[8] < userInput[9])
  2842.                                         min = userInput[8]; //userInput[8] is min
  2843.                                     else
  2844.  
  2845.                                         min = userInput[9]; //userInput[9] is min
  2846.                         else
  2847.  
  2848.  
  2849.                             if (userInput[6] < userInput[7])
  2850.  
  2851.                                 if (userInput[6] < userInput[8])
  2852.  
  2853.                                     if (userInput[6] < userInput[9])
  2854.                                         min = userInput[6]; //userInput[6] is min
  2855.                                     else
  2856.  
  2857.                                         min = userInput[9]; //userInput[9] is min
  2858.                                 else
  2859.  
  2860.  
  2861.                                     if (userInput[8] < userInput[9])
  2862.                                         min = userInput[8]; //userInput[8] is min
  2863.                                     else
  2864.  
  2865.                                         min = userInput[9]; //userInput[9] is min
  2866.                             else
  2867.  
  2868.  
  2869.                                 if (userInput[7] < userInput[8])
  2870.  
  2871.                                     if (userInput[7] < userInput[9])
  2872.                                         min = userInput[7]; //userInput[7] is min
  2873.                                     else
  2874.  
  2875.                                         min = userInput[9]; //userInput[9] is min
  2876.                                 else
  2877.  
  2878.  
  2879.                                     if (userInput[8] < userInput[9])
  2880.                                         min = userInput[8]; //userInput[8] is min
  2881.                                     else
  2882.  
  2883.                                         min = userInput[9]; //userInput[9] is min
  2884.             else
  2885.  
  2886.  
  2887.                 if (userInput[3] < userInput[4])
  2888.  
  2889.                     if (userInput[3] < userInput[5])
  2890.  
  2891.                         if (userInput[3] < userInput[6])
  2892.  
  2893.                             if (userInput[3] < userInput[7])
  2894.  
  2895.                                 if (userInput[3] < userInput[8])
  2896.  
  2897.                                     if (userInput[3] < userInput[9])
  2898.                                         min = userInput[3]; //userInput[3] is min
  2899.                                     else
  2900.  
  2901.                                         min = userInput[9]; //userInput[9] is min
  2902.                                 else
  2903.  
  2904.  
  2905.                                     if (userInput[8] < userInput[9])
  2906.                                         min = userInput[8]; //userInput[8] is min
  2907.                                     else
  2908.  
  2909.                                         min = userInput[9]; //userInput[9] is min
  2910.                             else
  2911.  
  2912.  
  2913.                                 if (userInput[7] < userInput[8])
  2914.  
  2915.                                     if (userInput[7] < userInput[9])
  2916.                                         min = userInput[7]; //userInput[7] is min
  2917.                                     else
  2918.  
  2919.                                         min = userInput[9]; //userInput[9] is min
  2920.                                 else
  2921.  
  2922.  
  2923.                                     if (userInput[8] < userInput[9])
  2924.                                         min = userInput[8]; //userInput[8] is min
  2925.                                     else
  2926.  
  2927.                                         min = userInput[9]; //userInput[9] is min
  2928.                         else
  2929.  
  2930.  
  2931.                             if (userInput[6] < userInput[7])
  2932.  
  2933.                                 if (userInput[6] < userInput[8])
  2934.  
  2935.                                     if (userInput[6] < userInput[9])
  2936.                                         min = userInput[6]; //userInput[6] is min
  2937.                                     else
  2938.  
  2939.                                         min = userInput[9]; //userInput[9] is min
  2940.                                 else
  2941.  
  2942.  
  2943.                                     if (userInput[8] < userInput[9])
  2944.                                         min = userInput[8]; //userInput[8] is min
  2945.                                     else
  2946.  
  2947.                                         min = userInput[9]; //userInput[9] is min
  2948.                             else
  2949.  
  2950.  
  2951.                                 if (userInput[7] < userInput[8])
  2952.  
  2953.                                     if (userInput[7] < userInput[9])
  2954.                                         min = userInput[7]; //userInput[7] is min
  2955.                                     else
  2956.  
  2957.                                         min = userInput[9]; //userInput[9] is min
  2958.                                 else
  2959.  
  2960.  
  2961.                                     if (userInput[8] < userInput[9])
  2962.                                         min = userInput[8]; //userInput[8] is min
  2963.                                     else
  2964.  
  2965.                                         min = userInput[9]; //userInput[9] is min
  2966.                     else
  2967.  
  2968.  
  2969.                         if (userInput[5] < userInput[6])
  2970.  
  2971.                             if (userInput[5] < userInput[7])
  2972.  
  2973.                                 if (userInput[5] < userInput[8])
  2974.  
  2975.                                     if (userInput[5] < userInput[9])
  2976.                                         min = userInput[5]; //userInput[5] is min
  2977.                                     else
  2978.  
  2979.                                         min = userInput[9]; //userInput[9] is min
  2980.                                 else
  2981.  
  2982.  
  2983.                                     if (userInput[8] < userInput[9])
  2984.                                         min = userInput[8]; //userInput[8] is min
  2985.                                     else
  2986.  
  2987.                                         min = userInput[9]; //userInput[9] is min
  2988.                             else
  2989.  
  2990.  
  2991.                                 if (userInput[7] < userInput[8])
  2992.  
  2993.                                     if (userInput[7] < userInput[9])
  2994.                                         min = userInput[7]; //userInput[7] is min
  2995.                                     else
  2996.  
  2997.                                         min = userInput[9]; //userInput[9] is min
  2998.                                 else
  2999.  
  3000.  
  3001.                                     if (userInput[8] < userInput[9])
  3002.                                         min = userInput[8]; //userInput[8] is min
  3003.                                     else
  3004.  
  3005.                                         min = userInput[9]; //userInput[9] is min
  3006.                         else
  3007.  
  3008.  
  3009.                             if (userInput[6] < userInput[7])
  3010.  
  3011.                                 if (userInput[6] < userInput[8])
  3012.  
  3013.                                     if (userInput[6] < userInput[9])
  3014.                                         min = userInput[6]; //userInput[6] is min
  3015.                                     else
  3016.  
  3017.                                         min = userInput[9]; //userInput[9] is min
  3018.                                 else
  3019.  
  3020.  
  3021.                                     if (userInput[8] < userInput[9])
  3022.                                         min = userInput[8]; //userInput[8] is min
  3023.                                     else
  3024.  
  3025.                                         min = userInput[9]; //userInput[9] is min
  3026.                             else
  3027.  
  3028.  
  3029.                                 if (userInput[7] < userInput[8])
  3030.  
  3031.                                     if (userInput[7] < userInput[9])
  3032.                                         min = userInput[7]; //userInput[7] is min
  3033.                                     else
  3034.  
  3035.                                         min = userInput[9]; //userInput[9] is min
  3036.                                 else
  3037.  
  3038.  
  3039.                                     if (userInput[8] < userInput[9])
  3040.                                         min = userInput[8]; //userInput[8] is min
  3041.                                     else
  3042.  
  3043.                                         min = userInput[9]; //userInput[9] is min
  3044.                 else
  3045.  
  3046.  
  3047.                     if (userInput[4] < userInput[5])
  3048.  
  3049.                         if (userInput[4] < userInput[6])
  3050.  
  3051.                             if (userInput[4] < userInput[7])
  3052.  
  3053.                                 if (userInput[4] < userInput[8])
  3054.  
  3055.                                     if (userInput[4] < userInput[9])
  3056.                                         min = userInput[4]; //userInput[4] is min
  3057.                                     else
  3058.  
  3059.                                         min = userInput[9]; //userInput[9] is min
  3060.                                 else
  3061.  
  3062.  
  3063.                                     if (userInput[8] < userInput[9])
  3064.                                         min = userInput[8]; //userInput[8] is min
  3065.                                     else
  3066.  
  3067.                                         min = userInput[9]; //userInput[9] is min
  3068.                             else
  3069.  
  3070.  
  3071.                                 if (userInput[7] < userInput[8])
  3072.  
  3073.                                     if (userInput[7] < userInput[9])
  3074.                                         min = userInput[7]; //userInput[7] is min
  3075.                                     else
  3076.  
  3077.                                         min = userInput[9]; //userInput[9] is min
  3078.                                 else
  3079.  
  3080.  
  3081.                                     if (userInput[8] < userInput[9])
  3082.                                         min = userInput[8]; //userInput[8] is min
  3083.                                     else
  3084.  
  3085.                                         min = userInput[9]; //userInput[9] is min
  3086.                         else
  3087.  
  3088.  
  3089.                             if (userInput[6] < userInput[7])
  3090.  
  3091.                                 if (userInput[6] < userInput[8])
  3092.  
  3093.                                     if (userInput[6] < userInput[9])
  3094.                                         min = userInput[6]; //userInput[6] is min
  3095.                                     else
  3096.  
  3097.                                         min = userInput[9]; //userInput[9] is min
  3098.                                 else
  3099.  
  3100.  
  3101.                                     if (userInput[8] < userInput[9])
  3102.                                         min = userInput[8]; //userInput[8] is min
  3103.                                     else
  3104.  
  3105.                                         min = userInput[9]; //userInput[9] is min
  3106.                             else
  3107.  
  3108.  
  3109.                                 if (userInput[7] < userInput[8])
  3110.  
  3111.                                     if (userInput[7] < userInput[9])
  3112.                                         min = userInput[7]; //userInput[7] is min
  3113.                                     else
  3114.  
  3115.                                         min = userInput[9]; //userInput[9] is min
  3116.                                 else
  3117.  
  3118.  
  3119.                                     if (userInput[8] < userInput[9])
  3120.                                         min = userInput[8]; //userInput[8] is min
  3121.                                     else
  3122.  
  3123.                                         min = userInput[9]; //userInput[9] is min
  3124.                     else
  3125.  
  3126.  
  3127.                         if (userInput[5] < userInput[6])
  3128.  
  3129.                             if (userInput[5] < userInput[7])
  3130.  
  3131.                                 if (userInput[5] < userInput[8])
  3132.  
  3133.                                     if (userInput[5] < userInput[9])
  3134.                                         min = userInput[5]; //userInput[5] is min
  3135.                                     else
  3136.  
  3137.                                         min = userInput[9]; //userInput[9] is min
  3138.                                 else
  3139.  
  3140.  
  3141.                                     if (userInput[8] < userInput[9])
  3142.                                         min = userInput[8]; //userInput[8] is min
  3143.                                     else
  3144.  
  3145.                                         min = userInput[9]; //userInput[9] is min
  3146.                             else
  3147.  
  3148.  
  3149.                                 if (userInput[7] < userInput[8])
  3150.  
  3151.                                     if (userInput[7] < userInput[9])
  3152.                                         min = userInput[7]; //userInput[7] is min
  3153.                                     else
  3154.  
  3155.                                         min = userInput[9]; //userInput[9] is min
  3156.                                 else
  3157.  
  3158.  
  3159.                                     if (userInput[8] < userInput[9])
  3160.                                         min = userInput[8]; //userInput[8] is min
  3161.                                     else
  3162.  
  3163.                                         min = userInput[9]; //userInput[9] is min
  3164.                         else
  3165.  
  3166.  
  3167.                             if (userInput[6] < userInput[7])
  3168.  
  3169.                                 if (userInput[6] < userInput[8])
  3170.  
  3171.                                     if (userInput[6] < userInput[9])
  3172.                                         min = userInput[6]; //userInput[6] is min
  3173.                                     else
  3174.  
  3175.                                         min = userInput[9]; //userInput[9] is min
  3176.                                 else
  3177.  
  3178.  
  3179.                                     if (userInput[8] < userInput[9])
  3180.                                         min = userInput[8]; //userInput[8] is min
  3181.                                     else
  3182.  
  3183.                                         min = userInput[9]; //userInput[9] is min
  3184.                             else
  3185.  
  3186.  
  3187.                                 if (userInput[7] < userInput[8])
  3188.  
  3189.                                     if (userInput[7] < userInput[9])
  3190.                                         min = userInput[7]; //userInput[7] is min
  3191.                                     else
  3192.  
  3193.                                         min = userInput[9]; //userInput[9] is min
  3194.                                 else
  3195.  
  3196.  
  3197.                                     if (userInput[8] < userInput[9])
  3198.                                         min = userInput[8]; //userInput[8] is min
  3199.                                     else
  3200.  
  3201.                                         min = userInput[9]; //userInput[9] is min
  3202.         else
  3203.  
  3204.  
  3205.             if (userInput[2] < userInput[3])
  3206.  
  3207.                 if (userInput[2] < userInput[4])
  3208.  
  3209.                     if (userInput[2] < userInput[5])
  3210.  
  3211.                         if (userInput[2] < userInput[6])
  3212.  
  3213.                             if (userInput[2] < userInput[7])
  3214.  
  3215.                                 if (userInput[2] < userInput[8])
  3216.  
  3217.                                     if (userInput[2] < userInput[9])
  3218.                                         min = userInput[2]; //userInput[2] is min
  3219.                                     else
  3220.  
  3221.                                         min = userInput[9]; //userInput[9] is min
  3222.                                 else
  3223.  
  3224.  
  3225.                                     if (userInput[8] < userInput[9])
  3226.                                         min = userInput[8]; //userInput[8] is min
  3227.                                     else
  3228.  
  3229.                                         min = userInput[9]; //userInput[9] is min
  3230.                             else
  3231.  
  3232.  
  3233.                                 if (userInput[7] < userInput[8])
  3234.  
  3235.                                     if (userInput[7] < userInput[9])
  3236.                                         min = userInput[7]; //userInput[7] is min
  3237.                                     else
  3238.  
  3239.                                         min = userInput[9]; //userInput[9] is min
  3240.                                 else
  3241.  
  3242.  
  3243.                                     if (userInput[8] < userInput[9])
  3244.                                         min = userInput[8]; //userInput[8] is min
  3245.                                     else
  3246.  
  3247.                                         min = userInput[9]; //userInput[9] is min
  3248.                         else
  3249.  
  3250.  
  3251.                             if (userInput[6] < userInput[7])
  3252.  
  3253.                                 if (userInput[6] < userInput[8])
  3254.  
  3255.                                     if (userInput[6] < userInput[9])
  3256.                                         min = userInput[6]; //userInput[6] is min
  3257.                                     else
  3258.  
  3259.                                         min = userInput[9]; //userInput[9] is min
  3260.                                 else
  3261.  
  3262.  
  3263.                                     if (userInput[8] < userInput[9])
  3264.                                         min = userInput[8]; //userInput[8] is min
  3265.                                     else
  3266.  
  3267.                                         min = userInput[9]; //userInput[9] is min
  3268.                             else
  3269.  
  3270.  
  3271.                                 if (userInput[7] < userInput[8])
  3272.  
  3273.                                     if (userInput[7] < userInput[9])
  3274.                                         min = userInput[7]; //userInput[7] is min
  3275.                                     else
  3276.  
  3277.                                         min = userInput[9]; //userInput[9] is min
  3278.                                 else
  3279.  
  3280.  
  3281.                                     if (userInput[8] < userInput[9])
  3282.                                         min = userInput[8]; //userInput[8] is min
  3283.                                     else
  3284.  
  3285.                                         min = userInput[9]; //userInput[9] is min
  3286.                     else
  3287.  
  3288.  
  3289.                         if (userInput[5] < userInput[6])
  3290.  
  3291.                             if (userInput[5] < userInput[7])
  3292.  
  3293.                                 if (userInput[5] < userInput[8])
  3294.  
  3295.                                     if (userInput[5] < userInput[9])
  3296.                                         min = userInput[5]; //userInput[5] is min
  3297.                                     else
  3298.  
  3299.                                         min = userInput[9]; //userInput[9] is min
  3300.                                 else
  3301.  
  3302.  
  3303.                                     if (userInput[8] < userInput[9])
  3304.                                         min = userInput[8]; //userInput[8] is min
  3305.                                     else
  3306.  
  3307.                                         min = userInput[9]; //userInput[9] is min
  3308.                             else
  3309.  
  3310.  
  3311.                                 if (userInput[7] < userInput[8])
  3312.  
  3313.                                     if (userInput[7] < userInput[9])
  3314.                                         min = userInput[7]; //userInput[7] is min
  3315.                                     else
  3316.  
  3317.                                         min = userInput[9]; //userInput[9] is min
  3318.                                 else
  3319.  
  3320.  
  3321.                                     if (userInput[8] < userInput[9])
  3322.                                         min = userInput[8]; //userInput[8] is min
  3323.                                     else
  3324.  
  3325.                                         min = userInput[9]; //userInput[9] is min
  3326.                         else
  3327.  
  3328.  
  3329.                             if (userInput[6] < userInput[7])
  3330.  
  3331.                                 if (userInput[6] < userInput[8])
  3332.  
  3333.                                     if (userInput[6] < userInput[9])
  3334.                                         min = userInput[6]; //userInput[6] is min
  3335.                                     else
  3336.  
  3337.                                         min = userInput[9]; //userInput[9] is min
  3338.                                 else
  3339.  
  3340.  
  3341.                                     if (userInput[8] < userInput[9])
  3342.                                         min = userInput[8]; //userInput[8] is min
  3343.                                     else
  3344.  
  3345.                                         min = userInput[9]; //userInput[9] is min
  3346.                             else
  3347.  
  3348.  
  3349.                                 if (userInput[7] < userInput[8])
  3350.  
  3351.                                     if (userInput[7] < userInput[9])
  3352.                                         min = userInput[7]; //userInput[7] is min
  3353.                                     else
  3354.  
  3355.                                         min = userInput[9]; //userInput[9] is min
  3356.                                 else
  3357.  
  3358.  
  3359.                                     if (userInput[8] < userInput[9])
  3360.                                         min = userInput[8]; //userInput[8] is min
  3361.                                     else
  3362.  
  3363.                                         min = userInput[9]; //userInput[9] is min
  3364.                 else
  3365.  
  3366.  
  3367.                     if (userInput[4] < userInput[5])
  3368.  
  3369.                         if (userInput[4] < userInput[6])
  3370.  
  3371.                             if (userInput[4] < userInput[7])
  3372.  
  3373.                                 if (userInput[4] < userInput[8])
  3374.  
  3375.                                     if (userInput[4] < userInput[9])
  3376.                                         min = userInput[4]; //userInput[4] is min
  3377.                                     else
  3378.  
  3379.                                         min = userInput[9]; //userInput[9] is min
  3380.                                 else
  3381.  
  3382.  
  3383.                                     if (userInput[8] < userInput[9])
  3384.                                         min = userInput[8]; //userInput[8] is min
  3385.                                     else
  3386.  
  3387.                                         min = userInput[9]; //userInput[9] is min
  3388.                             else
  3389.  
  3390.  
  3391.                                 if (userInput[7] < userInput[8])
  3392.  
  3393.                                     if (userInput[7] < userInput[9])
  3394.                                         min = userInput[7]; //userInput[7] is min
  3395.                                     else
  3396.  
  3397.                                         min = userInput[9]; //userInput[9] is min
  3398.                                 else
  3399.  
  3400.  
  3401.                                     if (userInput[8] < userInput[9])
  3402.                                         min = userInput[8]; //userInput[8] is min
  3403.                                     else
  3404.  
  3405.                                         min = userInput[9]; //userInput[9] is min
  3406.                         else
  3407.  
  3408.  
  3409.                             if (userInput[6] < userInput[7])
  3410.  
  3411.                                 if (userInput[6] < userInput[8])
  3412.  
  3413.                                     if (userInput[6] < userInput[9])
  3414.                                         min = userInput[6]; //userInput[6] is min
  3415.                                     else
  3416.  
  3417.                                         min = userInput[9]; //userInput[9] is min
  3418.                                 else
  3419.  
  3420.  
  3421.                                     if (userInput[8] < userInput[9])
  3422.                                         min = userInput[8]; //userInput[8] is min
  3423.                                     else
  3424.  
  3425.                                         min = userInput[9]; //userInput[9] is min
  3426.                             else
  3427.  
  3428.  
  3429.                                 if (userInput[7] < userInput[8])
  3430.  
  3431.                                     if (userInput[7] < userInput[9])
  3432.                                         min = userInput[7]; //userInput[7] is min
  3433.                                     else
  3434.  
  3435.                                         min = userInput[9]; //userInput[9] is min
  3436.                                 else
  3437.  
  3438.  
  3439.                                     if (userInput[8] < userInput[9])
  3440.                                         min = userInput[8]; //userInput[8] is min
  3441.                                     else
  3442.  
  3443.                                         min = userInput[9]; //userInput[9] is min
  3444.                     else
  3445.  
  3446.  
  3447.                         if (userInput[5] < userInput[6])
  3448.  
  3449.                             if (userInput[5] < userInput[7])
  3450.  
  3451.                                 if (userInput[5] < userInput[8])
  3452.  
  3453.                                     if (userInput[5] < userInput[9])
  3454.                                         min = userInput[5]; //userInput[5] is min
  3455.                                     else
  3456.  
  3457.                                         min = userInput[9]; //userInput[9] is min
  3458.                                 else
  3459.  
  3460.  
  3461.                                     if (userInput[8] < userInput[9])
  3462.                                         min = userInput[8]; //userInput[8] is min
  3463.                                     else
  3464.  
  3465.                                         min = userInput[9]; //userInput[9] is min
  3466.                             else
  3467.  
  3468.  
  3469.                                 if (userInput[7] < userInput[8])
  3470.  
  3471.                                     if (userInput[7] < userInput[9])
  3472.                                         min = userInput[7]; //userInput[7] is min
  3473.                                     else
  3474.  
  3475.                                         min = userInput[9]; //userInput[9] is min
  3476.                                 else
  3477.  
  3478.  
  3479.                                     if (userInput[8] < userInput[9])
  3480.                                         min = userInput[8]; //userInput[8] is min
  3481.                                     else
  3482.  
  3483.                                         min = userInput[9]; //userInput[9] is min
  3484.                         else
  3485.  
  3486.  
  3487.                             if (userInput[6] < userInput[7])
  3488.  
  3489.                                 if (userInput[6] < userInput[8])
  3490.  
  3491.                                     if (userInput[6] < userInput[9])
  3492.                                         min = userInput[6]; //userInput[6] is min
  3493.                                     else
  3494.  
  3495.                                         min = userInput[9]; //userInput[9] is min
  3496.                                 else
  3497.  
  3498.  
  3499.                                     if (userInput[8] < userInput[9])
  3500.                                         min = userInput[8]; //userInput[8] is min
  3501.                                     else
  3502.  
  3503.                                         min = userInput[9]; //userInput[9] is min
  3504.                             else
  3505.  
  3506.  
  3507.                                 if (userInput[7] < userInput[8])
  3508.  
  3509.                                     if (userInput[7] < userInput[9])
  3510.                                         min = userInput[7]; //userInput[7] is min
  3511.                                     else
  3512.  
  3513.                                         min = userInput[9]; //userInput[9] is min
  3514.                                 else
  3515.  
  3516.  
  3517.                                     if (userInput[8] < userInput[9])
  3518.                                         min = userInput[8]; //userInput[8] is min
  3519.                                     else
  3520.  
  3521.                                         min = userInput[9]; //userInput[9] is min
  3522.             else
  3523.  
  3524.  
  3525.                 if (userInput[3] < userInput[4])
  3526.  
  3527.                     if (userInput[3] < userInput[5])
  3528.  
  3529.                         if (userInput[3] < userInput[6])
  3530.  
  3531.                             if (userInput[3] < userInput[7])
  3532.  
  3533.                                 if (userInput[3] < userInput[8])
  3534.  
  3535.                                     if (userInput[3] < userInput[9])
  3536.                                         min = userInput[3]; //userInput[3] is min
  3537.                                     else
  3538.  
  3539.                                         min = userInput[9]; //userInput[9] is min
  3540.                                 else
  3541.  
  3542.  
  3543.                                     if (userInput[8] < userInput[9])
  3544.                                         min = userInput[8]; //userInput[8] is min
  3545.                                     else
  3546.  
  3547.                                         min = userInput[9]; //userInput[9] is min
  3548.                             else
  3549.  
  3550.  
  3551.                                 if (userInput[7] < userInput[8])
  3552.  
  3553.                                     if (userInput[7] < userInput[9])
  3554.                                         min = userInput[7]; //userInput[7] is min
  3555.                                     else
  3556.  
  3557.                                         min = userInput[9]; //userInput[9] is min
  3558.                                 else
  3559.  
  3560.  
  3561.                                     if (userInput[8] < userInput[9])
  3562.                                         min = userInput[8]; //userInput[8] is min
  3563.                                     else
  3564.  
  3565.                                         min = userInput[9]; //userInput[9] is min
  3566.                         else
  3567.  
  3568.  
  3569.                             if (userInput[6] < userInput[7])
  3570.  
  3571.                                 if (userInput[6] < userInput[8])
  3572.  
  3573.                                     if (userInput[6] < userInput[9])
  3574.                                         min = userInput[6]; //userInput[6] is min
  3575.                                     else
  3576.  
  3577.                                         min = userInput[9]; //userInput[9] is min
  3578.                                 else
  3579.  
  3580.  
  3581.                                     if (userInput[8] < userInput[9])
  3582.                                         min = userInput[8]; //userInput[8] is min
  3583.                                     else
  3584.  
  3585.                                         min = userInput[9]; //userInput[9] is min
  3586.                             else
  3587.  
  3588.  
  3589.                                 if (userInput[7] < userInput[8])
  3590.  
  3591.                                     if (userInput[7] < userInput[9])
  3592.                                         min = userInput[7]; //userInput[7] is min
  3593.                                     else
  3594.  
  3595.                                         min = userInput[9]; //userInput[9] is min
  3596.                                 else
  3597.  
  3598.  
  3599.                                     if (userInput[8] < userInput[9])
  3600.                                         min = userInput[8]; //userInput[8] is min
  3601.                                     else
  3602.  
  3603.                                         min = userInput[9]; //userInput[9] is min
  3604.                     else
  3605.  
  3606.  
  3607.                         if (userInput[5] < userInput[6])
  3608.  
  3609.                             if (userInput[5] < userInput[7])
  3610.  
  3611.                                 if (userInput[5] < userInput[8])
  3612.  
  3613.                                     if (userInput[5] < userInput[9])
  3614.                                         min = userInput[5]; //userInput[5] is min
  3615.                                     else
  3616.  
  3617.                                         min = userInput[9]; //userInput[9] is min
  3618.                                 else
  3619.  
  3620.  
  3621.                                     if (userInput[8] < userInput[9])
  3622.                                         min = userInput[8]; //userInput[8] is min
  3623.                                     else
  3624.  
  3625.                                         min = userInput[9]; //userInput[9] is min
  3626.                             else
  3627.  
  3628.  
  3629.                                 if (userInput[7] < userInput[8])
  3630.  
  3631.                                     if (userInput[7] < userInput[9])
  3632.                                         min = userInput[7]; //userInput[7] is min
  3633.                                     else
  3634.  
  3635.                                         min = userInput[9]; //userInput[9] is min
  3636.                                 else
  3637.  
  3638.  
  3639.                                     if (userInput[8] < userInput[9])
  3640.                                         min = userInput[8]; //userInput[8] is min
  3641.                                     else
  3642.  
  3643.                                         min = userInput[9]; //userInput[9] is min
  3644.                         else
  3645.  
  3646.  
  3647.                             if (userInput[6] < userInput[7])
  3648.  
  3649.                                 if (userInput[6] < userInput[8])
  3650.  
  3651.                                     if (userInput[6] < userInput[9])
  3652.                                         min = userInput[6]; //userInput[6] is min
  3653.                                     else
  3654.  
  3655.                                         min = userInput[9]; //userInput[9] is min
  3656.                                 else
  3657.  
  3658.  
  3659.                                     if (userInput[8] < userInput[9])
  3660.                                         min = userInput[8]; //userInput[8] is min
  3661.                                     else
  3662.  
  3663.                                         min = userInput[9]; //userInput[9] is min
  3664.                             else
  3665.  
  3666.  
  3667.                                 if (userInput[7] < userInput[8])
  3668.  
  3669.                                     if (userInput[7] < userInput[9])
  3670.                                         min = userInput[7]; //userInput[7] is min
  3671.                                     else
  3672.  
  3673.                                         min = userInput[9]; //userInput[9] is min
  3674.                                 else
  3675.  
  3676.  
  3677.                                     if (userInput[8] < userInput[9])
  3678.                                         min = userInput[8]; //userInput[8] is min
  3679.                                     else
  3680.  
  3681.                                         min = userInput[9]; //userInput[9] is min
  3682.                 else
  3683.  
  3684.  
  3685.                     if (userInput[4] < userInput[5])
  3686.  
  3687.                         if (userInput[4] < userInput[6])
  3688.  
  3689.                             if (userInput[4] < userInput[7])
  3690.  
  3691.                                 if (userInput[4] < userInput[8])
  3692.  
  3693.                                     if (userInput[4] < userInput[9])
  3694.                                         min = userInput[4]; //userInput[4] is min
  3695.                                     else
  3696.  
  3697.                                         min = userInput[9]; //userInput[9] is min
  3698.                                 else
  3699.  
  3700.  
  3701.                                     if (userInput[8] < userInput[9])
  3702.                                         min = userInput[8]; //userInput[8] is min
  3703.                                     else
  3704.  
  3705.                                         min = userInput[9]; //userInput[9] is min
  3706.                             else
  3707.  
  3708.  
  3709.                                 if (userInput[7] < userInput[8])
  3710.  
  3711.                                     if (userInput[7] < userInput[9])
  3712.                                         min = userInput[7]; //userInput[7] is min
  3713.                                     else
  3714.  
  3715.                                         min = userInput[9]; //userInput[9] is min
  3716.                                 else
  3717.  
  3718.  
  3719.                                     if (userInput[8] < userInput[9])
  3720.                                         min = userInput[8]; //userInput[8] is min
  3721.                                     else
  3722.  
  3723.                                         min = userInput[9]; //userInput[9] is min
  3724.                         else
  3725.  
  3726.  
  3727.                             if (userInput[6] < userInput[7])
  3728.  
  3729.                                 if (userInput[6] < userInput[8])
  3730.  
  3731.                                     if (userInput[6] < userInput[9])
  3732.                                         min = userInput[6]; //userInput[6] is min
  3733.                                     else
  3734.  
  3735.                                         min = userInput[9]; //userInput[9] is min
  3736.                                 else
  3737.  
  3738.  
  3739.                                     if (userInput[8] < userInput[9])
  3740.                                         min = userInput[8]; //userInput[8] is min
  3741.                                     else
  3742.  
  3743.                                         min = userInput[9]; //userInput[9] is min
  3744.                             else
  3745.  
  3746.  
  3747.                                 if (userInput[7] < userInput[8])
  3748.  
  3749.                                     if (userInput[7] < userInput[9])
  3750.                                         min = userInput[7]; //userInput[7] is min
  3751.                                     else
  3752.  
  3753.                                         min = userInput[9]; //userInput[9] is min
  3754.                                 else
  3755.  
  3756.  
  3757.                                     if (userInput[8] < userInput[9])
  3758.                                         min = userInput[8]; //userInput[8] is min
  3759.                                     else
  3760.  
  3761.                                         min = userInput[9]; //userInput[9] is min
  3762.                     else
  3763.  
  3764.  
  3765.                         if (userInput[5] < userInput[6])
  3766.  
  3767.                             if (userInput[5] < userInput[7])
  3768.  
  3769.                                 if (userInput[5] < userInput[8])
  3770.  
  3771.                                     if (userInput[5] < userInput[9])
  3772.                                         min = userInput[5]; //userInput[5] is min
  3773.                                     else
  3774.  
  3775.                                         min = userInput[9]; //userInput[9] is min
  3776.                                 else
  3777.  
  3778.  
  3779.                                     if (userInput[8] < userInput[9])
  3780.                                         min = userInput[8]; //userInput[8] is min
  3781.                                     else
  3782.  
  3783.                                         min = userInput[9]; //userInput[9] is min
  3784.                             else
  3785.  
  3786.  
  3787.                                 if (userInput[7] < userInput[8])
  3788.  
  3789.                                     if (userInput[7] < userInput[9])
  3790.                                         min = userInput[7]; //userInput[7] is min
  3791.                                     else
  3792.  
  3793.                                         min = userInput[9]; //userInput[9] is min
  3794.                                 else
  3795.  
  3796.  
  3797.                                     if (userInput[8] < userInput[9])
  3798.                                         min = userInput[8]; //userInput[8] is min
  3799.                                     else
  3800.  
  3801.                                         min = userInput[9]; //userInput[9] is min
  3802.                         else
  3803.  
  3804.  
  3805.                             if (userInput[6] < userInput[7])
  3806.  
  3807.                                 if (userInput[6] < userInput[8])
  3808.  
  3809.                                     if (userInput[6] < userInput[9])
  3810.                                         min = userInput[6]; //userInput[6] is min
  3811.                                     else
  3812.  
  3813.                                         min = userInput[9]; //userInput[9] is min
  3814.                                 else
  3815.  
  3816.  
  3817.                                     if (userInput[8] < userInput[9])
  3818.                                         min = userInput[8]; //userInput[8] is min
  3819.                                     else
  3820.  
  3821.                                         min = userInput[9]; //userInput[9] is min
  3822.                             else
  3823.  
  3824.  
  3825.                                 if (userInput[7] < userInput[8])
  3826.  
  3827.                                     if (userInput[7] < userInput[9])
  3828.                                         min = userInput[7]; //userInput[7] is min
  3829.                                     else
  3830.  
  3831.                                         min = userInput[9]; //userInput[9] is min
  3832.                                 else
  3833.  
  3834.  
  3835.                                     if (userInput[8] < userInput[9])
  3836.                                         min = userInput[8]; //userInput[8] is min
  3837.                                     else
  3838.  
  3839.                                         min = userInput[9]; //userInput[9] is min
  3840.     else
  3841.  
  3842.  
  3843.         if (userInput[1] < userInput[2])
  3844.  
  3845.             if (userInput[1] < userInput[3])
  3846.  
  3847.                 if (userInput[1] < userInput[4])
  3848.  
  3849.                     if (userInput[1] < userInput[5])
  3850.  
  3851.                         if (userInput[1] < userInput[6])
  3852.  
  3853.                             if (userInput[1] < userInput[7])
  3854.  
  3855.                                 if (userInput[1] < userInput[8])
  3856.  
  3857.                                     if (userInput[1] < userInput[9])
  3858.                                         min = userInput[1]; //userInput[1] is min
  3859.                                     else
  3860.  
  3861.                                         min = userInput[9]; //userInput[9] is min
  3862.                                 else
  3863.  
  3864.  
  3865.                                     if (userInput[8] < userInput[9])
  3866.                                         min = userInput[8]; //userInput[8] is min
  3867.                                     else
  3868.  
  3869.                                         min = userInput[9]; //userInput[9] is min
  3870.                             else
  3871.  
  3872.  
  3873.                                 if (userInput[7] < userInput[8])
  3874.  
  3875.                                     if (userInput[7] < userInput[9])
  3876.                                         min = userInput[7]; //userInput[7] is min
  3877.                                     else
  3878.  
  3879.                                         min = userInput[9]; //userInput[9] is min
  3880.                                 else
  3881.  
  3882.  
  3883.                                     if (userInput[8] < userInput[9])
  3884.                                         min = userInput[8]; //userInput[8] is min
  3885.                                     else
  3886.  
  3887.                                         min = userInput[9]; //userInput[9] is min
  3888.                         else
  3889.  
  3890.  
  3891.                             if (userInput[6] < userInput[7])
  3892.  
  3893.                                 if (userInput[6] < userInput[8])
  3894.  
  3895.                                     if (userInput[6] < userInput[9])
  3896.                                         min = userInput[6]; //userInput[6] is min
  3897.                                     else
  3898.  
  3899.                                         min = userInput[9]; //userInput[9] is min
  3900.                                 else
  3901.  
  3902.  
  3903.                                     if (userInput[8] < userInput[9])
  3904.                                         min = userInput[8]; //userInput[8] is min
  3905.                                     else
  3906.  
  3907.                                         min = userInput[9]; //userInput[9] is min
  3908.                             else
  3909.  
  3910.  
  3911.                                 if (userInput[7] < userInput[8])
  3912.  
  3913.                                     if (userInput[7] < userInput[9])
  3914.                                         min = userInput[7]; //userInput[7] is min
  3915.                                     else
  3916.  
  3917.                                         min = userInput[9]; //userInput[9] is min
  3918.                                 else
  3919.  
  3920.  
  3921.                                     if (userInput[8] < userInput[9])
  3922.                                         min = userInput[8]; //userInput[8] is min
  3923.                                     else
  3924.  
  3925.                                         min = userInput[9]; //userInput[9] is min
  3926.                     else
  3927.  
  3928.  
  3929.                         if (userInput[5] < userInput[6])
  3930.  
  3931.                             if (userInput[5] < userInput[7])
  3932.  
  3933.                                 if (userInput[5] < userInput[8])
  3934.  
  3935.                                     if (userInput[5] < userInput[9])
  3936.                                         min = userInput[5]; //userInput[5] is min
  3937.                                     else
  3938.  
  3939.                                         min = userInput[9]; //userInput[9] is min
  3940.                                 else
  3941.  
  3942.  
  3943.                                     if (userInput[8] < userInput[9])
  3944.                                         min = userInput[8]; //userInput[8] is min
  3945.                                     else
  3946.  
  3947.                                         min = userInput[9]; //userInput[9] is min
  3948.                             else
  3949.  
  3950.  
  3951.                                 if (userInput[7] < userInput[8])
  3952.  
  3953.                                     if (userInput[7] < userInput[9])
  3954.                                         min = userInput[7]; //userInput[7] is min
  3955.                                     else
  3956.  
  3957.                                         min = userInput[9]; //userInput[9] is min
  3958.                                 else
  3959.  
  3960.  
  3961.                                     if (userInput[8] < userInput[9])
  3962.                                         min = userInput[8]; //userInput[8] is min
  3963.                                     else
  3964.  
  3965.                                         min = userInput[9]; //userInput[9] is min
  3966.                         else
  3967.  
  3968.  
  3969.                             if (userInput[6] < userInput[7])
  3970.  
  3971.                                 if (userInput[6] < userInput[8])
  3972.  
  3973.                                     if (userInput[6] < userInput[9])
  3974.                                         min = userInput[6]; //userInput[6] is min
  3975.                                     else
  3976.  
  3977.                                         min = userInput[9]; //userInput[9] is min
  3978.                                 else
  3979.  
  3980.  
  3981.                                     if (userInput[8] < userInput[9])
  3982.                                         min = userInput[8]; //userInput[8] is min
  3983.                                     else
  3984.  
  3985.                                         min = userInput[9]; //userInput[9] is min
  3986.                             else
  3987.  
  3988.  
  3989.                                 if (userInput[7] < userInput[8])
  3990.  
  3991.                                     if (userInput[7] < userInput[9])
  3992.                                         min = userInput[7]; //userInput[7] is min
  3993.                                     else
  3994.  
  3995.                                         min = userInput[9]; //userInput[9] is min
  3996.                                 else
  3997.  
  3998.  
  3999.                                     if (userInput[8] < userInput[9])
  4000.                                         min = userInput[8]; //userInput[8] is min
  4001.                                     else
  4002.  
  4003.                                         min = userInput[9]; //userInput[9] is min
  4004.                 else
  4005.  
  4006.  
  4007.                     if (userInput[4] < userInput[5])
  4008.  
  4009.                         if (userInput[4] < userInput[6])
  4010.  
  4011.                             if (userInput[4] < userInput[7])
  4012.  
  4013.                                 if (userInput[4] < userInput[8])
  4014.  
  4015.                                     if (userInput[4] < userInput[9])
  4016.                                         min = userInput[4]; //userInput[4] is min
  4017.                                     else
  4018.  
  4019.                                         min = userInput[9]; //userInput[9] is min
  4020.                                 else
  4021.  
  4022.  
  4023.                                     if (userInput[8] < userInput[9])
  4024.                                         min = userInput[8]; //userInput[8] is min
  4025.                                     else
  4026.  
  4027.                                         min = userInput[9]; //userInput[9] is min
  4028.                             else
  4029.  
  4030.  
  4031.                                 if (userInput[7] < userInput[8])
  4032.  
  4033.                                     if (userInput[7] < userInput[9])
  4034.                                         min = userInput[7]; //userInput[7] is min
  4035.                                     else
  4036.  
  4037.                                         min = userInput[9]; //userInput[9] is min
  4038.                                 else
  4039.  
  4040.  
  4041.                                     if (userInput[8] < userInput[9])
  4042.                                         min = userInput[8]; //userInput[8] is min
  4043.                                     else
  4044.  
  4045.                                         min = userInput[9]; //userInput[9] is min
  4046.                         else
  4047.  
  4048.  
  4049.                             if (userInput[6] < userInput[7])
  4050.  
  4051.                                 if (userInput[6] < userInput[8])
  4052.  
  4053.                                     if (userInput[6] < userInput[9])
  4054.                                         min = userInput[6]; //userInput[6] is min
  4055.                                     else
  4056.  
  4057.                                         min = userInput[9]; //userInput[9] is min
  4058.                                 else
  4059.  
  4060.  
  4061.                                     if (userInput[8] < userInput[9])
  4062.                                         min = userInput[8]; //userInput[8] is min
  4063.                                     else
  4064.  
  4065.                                         min = userInput[9]; //userInput[9] is min
  4066.                             else
  4067.  
  4068.  
  4069.                                 if (userInput[7] < userInput[8])
  4070.  
  4071.                                     if (userInput[7] < userInput[9])
  4072.                                         min = userInput[7]; //userInput[7] is min
  4073.                                     else
  4074.  
  4075.                                         min = userInput[9]; //userInput[9] is min
  4076.                                 else
  4077.  
  4078.  
  4079.                                     if (userInput[8] < userInput[9])
  4080.                                         min = userInput[8]; //userInput[8] is min
  4081.                                     else
  4082.  
  4083.                                         min = userInput[9]; //userInput[9] is min
  4084.                     else
  4085.  
  4086.  
  4087.                         if (userInput[5] < userInput[6])
  4088.  
  4089.                             if (userInput[5] < userInput[7])
  4090.  
  4091.                                 if (userInput[5] < userInput[8])
  4092.  
  4093.                                     if (userInput[5] < userInput[9])
  4094.                                         min = userInput[5]; //userInput[5] is min
  4095.                                     else
  4096.  
  4097.                                         min = userInput[9]; //userInput[9] is min
  4098.                                 else
  4099.  
  4100.  
  4101.                                     if (userInput[8] < userInput[9])
  4102.                                         min = userInput[8]; //userInput[8] is min
  4103.                                     else
  4104.  
  4105.                                         min = userInput[9]; //userInput[9] is min
  4106.                             else
  4107.  
  4108.  
  4109.                                 if (userInput[7] < userInput[8])
  4110.  
  4111.                                     if (userInput[7] < userInput[9])
  4112.                                         min = userInput[7]; //userInput[7] is min
  4113.                                     else
  4114.  
  4115.                                         min = userInput[9]; //userInput[9] is min
  4116.                                 else
  4117.  
  4118.  
  4119.                                     if (userInput[8] < userInput[9])
  4120.                                         min = userInput[8]; //userInput[8] is min
  4121.                                     else
  4122.  
  4123.                                         min = userInput[9]; //userInput[9] is min
  4124.                         else
  4125.  
  4126.  
  4127.                             if (userInput[6] < userInput[7])
  4128.  
  4129.                                 if (userInput[6] < userInput[8])
  4130.  
  4131.                                     if (userInput[6] < userInput[9])
  4132.                                         min = userInput[6]; //userInput[6] is min
  4133.                                     else
  4134.  
  4135.                                         min = userInput[9]; //userInput[9] is min
  4136.                                 else
  4137.  
  4138.  
  4139.                                     if (userInput[8] < userInput[9])
  4140.                                         min = userInput[8]; //userInput[8] is min
  4141.                                     else
  4142.  
  4143.                                         min = userInput[9]; //userInput[9] is min
  4144.                             else
  4145.  
  4146.  
  4147.                                 if (userInput[7] < userInput[8])
  4148.  
  4149.                                     if (userInput[7] < userInput[9])
  4150.                                         min = userInput[7]; //userInput[7] is min
  4151.                                     else
  4152.  
  4153.                                         min = userInput[9]; //userInput[9] is min
  4154.                                 else
  4155.  
  4156.  
  4157.                                     if (userInput[8] < userInput[9])
  4158.                                         min = userInput[8]; //userInput[8] is min
  4159.                                     else
  4160.  
  4161.                                         min = userInput[9]; //userInput[9] is min
  4162.             else
  4163.  
  4164.  
  4165.                 if (userInput[3] < userInput[4])
  4166.  
  4167.                     if (userInput[3] < userInput[5])
  4168.  
  4169.                         if (userInput[3] < userInput[6])
  4170.  
  4171.                             if (userInput[3] < userInput[7])
  4172.  
  4173.                                 if (userInput[3] < userInput[8])
  4174.  
  4175.                                     if (userInput[3] < userInput[9])
  4176.                                         min = userInput[3]; //userInput[3] is min
  4177.                                     else
  4178.  
  4179.                                         min = userInput[9]; //userInput[9] is min
  4180.                                 else
  4181.  
  4182.  
  4183.                                     if (userInput[8] < userInput[9])
  4184.                                         min = userInput[8]; //userInput[8] is min
  4185.                                     else
  4186.  
  4187.                                         min = userInput[9]; //userInput[9] is min
  4188.                             else
  4189.  
  4190.  
  4191.                                 if (userInput[7] < userInput[8])
  4192.  
  4193.                                     if (userInput[7] < userInput[9])
  4194.                                         min = userInput[7]; //userInput[7] is min
  4195.                                     else
  4196.  
  4197.                                         min = userInput[9]; //userInput[9] is min
  4198.                                 else
  4199.  
  4200.  
  4201.                                     if (userInput[8] < userInput[9])
  4202.                                         min = userInput[8]; //userInput[8] is min
  4203.                                     else
  4204.  
  4205.                                         min = userInput[9]; //userInput[9] is min
  4206.                         else
  4207.  
  4208.  
  4209.                             if (userInput[6] < userInput[7])
  4210.  
  4211.                                 if (userInput[6] < userInput[8])
  4212.  
  4213.                                     if (userInput[6] < userInput[9])
  4214.                                         min = userInput[6]; //userInput[6] is min
  4215.                                     else
  4216.  
  4217.                                         min = userInput[9]; //userInput[9] is min
  4218.                                 else
  4219.  
  4220.  
  4221.                                     if (userInput[8] < userInput[9])
  4222.                                         min = userInput[8]; //userInput[8] is min
  4223.                                     else
  4224.  
  4225.                                         min = userInput[9]; //userInput[9] is min
  4226.                             else
  4227.  
  4228.  
  4229.                                 if (userInput[7] < userInput[8])
  4230.  
  4231.                                     if (userInput[7] < userInput[9])
  4232.                                         min = userInput[7]; //userInput[7] is min
  4233.                                     else
  4234.  
  4235.                                         min = userInput[9]; //userInput[9] is min
  4236.                                 else
  4237.  
  4238.  
  4239.                                     if (userInput[8] < userInput[9])
  4240.                                         min = userInput[8]; //userInput[8] is min
  4241.                                     else
  4242.  
  4243.                                         min = userInput[9]; //userInput[9] is min
  4244.                     else
  4245.  
  4246.  
  4247.                         if (userInput[5] < userInput[6])
  4248.  
  4249.                             if (userInput[5] < userInput[7])
  4250.  
  4251.                                 if (userInput[5] < userInput[8])
  4252.  
  4253.                                     if (userInput[5] < userInput[9])
  4254.                                         min = userInput[5]; //userInput[5] is min
  4255.                                     else
  4256.  
  4257.                                         min = userInput[9]; //userInput[9] is min
  4258.                                 else
  4259.  
  4260.  
  4261.                                     if (userInput[8] < userInput[9])
  4262.                                         min = userInput[8]; //userInput[8] is min
  4263.                                     else
  4264.  
  4265.                                         min = userInput[9]; //userInput[9] is min
  4266.                             else
  4267.  
  4268.  
  4269.                                 if (userInput[7] < userInput[8])
  4270.  
  4271.                                     if (userInput[7] < userInput[9])
  4272.                                         min = userInput[7]; //userInput[7] is min
  4273.                                     else
  4274.  
  4275.                                         min = userInput[9]; //userInput[9] is min
  4276.                                 else
  4277.  
  4278.  
  4279.                                     if (userInput[8] < userInput[9])
  4280.                                         min = userInput[8]; //userInput[8] is min
  4281.                                     else
  4282.  
  4283.                                         min = userInput[9]; //userInput[9] is min
  4284.                         else
  4285.  
  4286.  
  4287.                             if (userInput[6] < userInput[7])
  4288.  
  4289.                                 if (userInput[6] < userInput[8])
  4290.  
  4291.                                     if (userInput[6] < userInput[9])
  4292.                                         min = userInput[6]; //userInput[6] is min
  4293.                                     else
  4294.  
  4295.                                         min = userInput[9]; //userInput[9] is min
  4296.                                 else
  4297.  
  4298.  
  4299.                                     if (userInput[8] < userInput[9])
  4300.                                         min = userInput[8]; //userInput[8] is min
  4301.                                     else
  4302.  
  4303.                                         min = userInput[9]; //userInput[9] is min
  4304.                             else
  4305.  
  4306.  
  4307.                                 if (userInput[7] < userInput[8])
  4308.  
  4309.                                     if (userInput[7] < userInput[9])
  4310.                                         min = userInput[7]; //userInput[7] is min
  4311.                                     else
  4312.  
  4313.                                         min = userInput[9]; //userInput[9] is min
  4314.                                 else
  4315.  
  4316.  
  4317.                                     if (userInput[8] < userInput[9])
  4318.                                         min = userInput[8]; //userInput[8] is min
  4319.                                     else
  4320.  
  4321.                                         min = userInput[9]; //userInput[9] is min
  4322.                 else
  4323.  
  4324.  
  4325.                     if (userInput[4] < userInput[5])
  4326.  
  4327.                         if (userInput[4] < userInput[6])
  4328.  
  4329.                             if (userInput[4] < userInput[7])
  4330.  
  4331.                                 if (userInput[4] < userInput[8])
  4332.  
  4333.                                     if (userInput[4] < userInput[9])
  4334.                                         min = userInput[4]; //userInput[4] is min
  4335.                                     else
  4336.  
  4337.                                         min = userInput[9]; //userInput[9] is min
  4338.                                 else
  4339.  
  4340.  
  4341.                                     if (userInput[8] < userInput[9])
  4342.                                         min = userInput[8]; //userInput[8] is min
  4343.                                     else
  4344.  
  4345.                                         min = userInput[9]; //userInput[9] is min
  4346.                             else
  4347.  
  4348.  
  4349.                                 if (userInput[7] < userInput[8])
  4350.  
  4351.                                     if (userInput[7] < userInput[9])
  4352.                                         min = userInput[7]; //userInput[7] is min
  4353.                                     else
  4354.  
  4355.                                         min = userInput[9]; //userInput[9] is min
  4356.                                 else
  4357.  
  4358.  
  4359.                                     if (userInput[8] < userInput[9])
  4360.                                         min = userInput[8]; //userInput[8] is min
  4361.                                     else
  4362.  
  4363.                                         min = userInput[9]; //userInput[9] is min
  4364.                         else
  4365.  
  4366.  
  4367.                             if (userInput[6] < userInput[7])
  4368.  
  4369.                                 if (userInput[6] < userInput[8])
  4370.  
  4371.                                     if (userInput[6] < userInput[9])
  4372.                                         min = userInput[6]; //userInput[6] is min
  4373.                                     else
  4374.  
  4375.                                         min = userInput[9]; //userInput[9] is min
  4376.                                 else
  4377.  
  4378.  
  4379.                                     if (userInput[8] < userInput[9])
  4380.                                         min = userInput[8]; //userInput[8] is min
  4381.                                     else
  4382.  
  4383.                                         min = userInput[9]; //userInput[9] is min
  4384.                             else
  4385.  
  4386.  
  4387.                                 if (userInput[7] < userInput[8])
  4388.  
  4389.                                     if (userInput[7] < userInput[9])
  4390.                                         min = userInput[7]; //userInput[7] is min
  4391.                                     else
  4392.  
  4393.                                         min = userInput[9]; //userInput[9] is min
  4394.                                 else
  4395.  
  4396.  
  4397.                                     if (userInput[8] < userInput[9])
  4398.                                         min = userInput[8]; //userInput[8] is min
  4399.                                     else
  4400.  
  4401.                                         min = userInput[9]; //userInput[9] is min
  4402.                     else
  4403.  
  4404.  
  4405.                         if (userInput[5] < userInput[6])
  4406.  
  4407.                             if (userInput[5] < userInput[7])
  4408.  
  4409.                                 if (userInput[5] < userInput[8])
  4410.  
  4411.                                     if (userInput[5] < userInput[9])
  4412.                                         min = userInput[5]; //userInput[5] is min
  4413.                                     else
  4414.  
  4415.                                         min = userInput[9]; //userInput[9] is min
  4416.                                 else
  4417.  
  4418.  
  4419.                                     if (userInput[8] < userInput[9])
  4420.                                         min = userInput[8]; //userInput[8] is min
  4421.                                     else
  4422.  
  4423.                                         min = userInput[9]; //userInput[9] is min
  4424.                             else
  4425.  
  4426.  
  4427.                                 if (userInput[7] < userInput[8])
  4428.  
  4429.                                     if (userInput[7] < userInput[9])
  4430.                                         min = userInput[7]; //userInput[7] is min
  4431.                                     else
  4432.  
  4433.                                         min = userInput[9]; //userInput[9] is min
  4434.                                 else
  4435.  
  4436.  
  4437.                                     if (userInput[8] < userInput[9])
  4438.                                         min = userInput[8]; //userInput[8] is min
  4439.                                     else
  4440.  
  4441.                                         min = userInput[9]; //userInput[9] is min
  4442.                         else
  4443.  
  4444.  
  4445.                             if (userInput[6] < userInput[7])
  4446.  
  4447.                                 if (userInput[6] < userInput[8])
  4448.  
  4449.                                     if (userInput[6] < userInput[9])
  4450.                                         min = userInput[6]; //userInput[6] is min
  4451.                                     else
  4452.  
  4453.                                         min = userInput[9]; //userInput[9] is min
  4454.                                 else
  4455.  
  4456.  
  4457.                                     if (userInput[8] < userInput[9])
  4458.                                         min = userInput[8]; //userInput[8] is min
  4459.                                     else
  4460.  
  4461.                                         min = userInput[9]; //userInput[9] is min
  4462.                             else
  4463.  
  4464.  
  4465.                                 if (userInput[7] < userInput[8])
  4466.  
  4467.                                     if (userInput[7] < userInput[9])
  4468.                                         min = userInput[7]; //userInput[7] is min
  4469.                                     else
  4470.  
  4471.                                         min = userInput[9]; //userInput[9] is min
  4472.                                 else
  4473.  
  4474.  
  4475.                                     if (userInput[8] < userInput[9])
  4476.                                         min = userInput[8]; //userInput[8] is min
  4477.                                     else
  4478.  
  4479.                                         min = userInput[9]; //userInput[9] is min
  4480.         else
  4481.  
  4482.  
  4483.             if (userInput[2] < userInput[3])
  4484.  
  4485.                 if (userInput[2] < userInput[4])
  4486.  
  4487.                     if (userInput[2] < userInput[5])
  4488.  
  4489.                         if (userInput[2] < userInput[6])
  4490.  
  4491.                             if (userInput[2] < userInput[7])
  4492.  
  4493.                                 if (userInput[2] < userInput[8])
  4494.  
  4495.                                     if (userInput[2] < userInput[9])
  4496.                                         min = userInput[2]; //userInput[2] is min
  4497.                                     else
  4498.  
  4499.                                         min = userInput[9]; //userInput[9] is min
  4500.                                 else
  4501.  
  4502.  
  4503.                                     if (userInput[8] < userInput[9])
  4504.                                         min = userInput[8]; //userInput[8] is min
  4505.                                     else
  4506.  
  4507.                                         min = userInput[9]; //userInput[9] is min
  4508.                             else
  4509.  
  4510.  
  4511.                                 if (userInput[7] < userInput[8])
  4512.  
  4513.                                     if (userInput[7] < userInput[9])
  4514.                                         min = userInput[7]; //userInput[7] is min
  4515.                                     else
  4516.  
  4517.                                         min = userInput[9]; //userInput[9] is min
  4518.                                 else
  4519.  
  4520.  
  4521.                                     if (userInput[8] < userInput[9])
  4522.                                         min = userInput[8]; //userInput[8] is min
  4523.                                     else
  4524.  
  4525.                                         min = userInput[9]; //userInput[9] is min
  4526.                         else
  4527.  
  4528.  
  4529.                             if (userInput[6] < userInput[7])
  4530.  
  4531.                                 if (userInput[6] < userInput[8])
  4532.  
  4533.                                     if (userInput[6] < userInput[9])
  4534.                                         min = userInput[6]; //userInput[6] is min
  4535.                                     else
  4536.  
  4537.                                         min = userInput[9]; //userInput[9] is min
  4538.                                 else
  4539.  
  4540.  
  4541.                                     if (userInput[8] < userInput[9])
  4542.                                         min = userInput[8]; //userInput[8] is min
  4543.                                     else
  4544.  
  4545.                                         min = userInput[9]; //userInput[9] is min
  4546.                             else
  4547.  
  4548.  
  4549.                                 if (userInput[7] < userInput[8])
  4550.  
  4551.                                     if (userInput[7] < userInput[9])
  4552.                                         min = userInput[7]; //userInput[7] is min
  4553.                                     else
  4554.  
  4555.                                         min = userInput[9]; //userInput[9] is min
  4556.                                 else
  4557.  
  4558.  
  4559.                                     if (userInput[8] < userInput[9])
  4560.                                         min = userInput[8]; //userInput[8] is min
  4561.                                     else
  4562.  
  4563.                                         min = userInput[9]; //userInput[9] is min
  4564.                     else
  4565.  
  4566.  
  4567.                         if (userInput[5] < userInput[6])
  4568.  
  4569.                             if (userInput[5] < userInput[7])
  4570.  
  4571.                                 if (userInput[5] < userInput[8])
  4572.  
  4573.                                     if (userInput[5] < userInput[9])
  4574.                                         min = userInput[5]; //userInput[5] is min
  4575.                                     else
  4576.  
  4577.                                         min = userInput[9]; //userInput[9] is min
  4578.                                 else
  4579.  
  4580.  
  4581.                                     if (userInput[8] < userInput[9])
  4582.                                         min = userInput[8]; //userInput[8] is min
  4583.                                     else
  4584.  
  4585.                                         min = userInput[9]; //userInput[9] is min
  4586.                             else
  4587.  
  4588.  
  4589.                                 if (userInput[7] < userInput[8])
  4590.  
  4591.                                     if (userInput[7] < userInput[9])
  4592.                                         min = userInput[7]; //userInput[7] is min
  4593.                                     else
  4594.  
  4595.                                         min = userInput[9]; //userInput[9] is min
  4596.                                 else
  4597.  
  4598.  
  4599.                                     if (userInput[8] < userInput[9])
  4600.                                         min = userInput[8]; //userInput[8] is min
  4601.                                     else
  4602.  
  4603.                                         min = userInput[9]; //userInput[9] is min
  4604.                         else
  4605.  
  4606.  
  4607.                             if (userInput[6] < userInput[7])
  4608.  
  4609.                                 if (userInput[6] < userInput[8])
  4610.  
  4611.                                     if (userInput[6] < userInput[9])
  4612.                                         min = userInput[6]; //userInput[6] is min
  4613.                                     else
  4614.  
  4615.                                         min = userInput[9]; //userInput[9] is min
  4616.                                 else
  4617.  
  4618.  
  4619.                                     if (userInput[8] < userInput[9])
  4620.                                         min = userInput[8]; //userInput[8] is min
  4621.                                     else
  4622.  
  4623.                                         min = userInput[9]; //userInput[9] is min
  4624.                             else
  4625.  
  4626.  
  4627.                                 if (userInput[7] < userInput[8])
  4628.  
  4629.                                     if (userInput[7] < userInput[9])
  4630.                                         min = userInput[7]; //userInput[7] is min
  4631.                                     else
  4632.  
  4633.                                         min = userInput[9]; //userInput[9] is min
  4634.                                 else
  4635.  
  4636.  
  4637.                                     if (userInput[8] < userInput[9])
  4638.                                         min = userInput[8]; //userInput[8] is min
  4639.                                     else
  4640.  
  4641.                                         min = userInput[9]; //userInput[9] is min
  4642.                 else
  4643.  
  4644.  
  4645.                     if (userInput[4] < userInput[5])
  4646.  
  4647.                         if (userInput[4] < userInput[6])
  4648.  
  4649.                             if (userInput[4] < userInput[7])
  4650.  
  4651.                                 if (userInput[4] < userInput[8])
  4652.  
  4653.                                     if (userInput[4] < userInput[9])
  4654.                                         min = userInput[4]; //userInput[4] is min
  4655.                                     else
  4656.  
  4657.                                         min = userInput[9]; //userInput[9] is min
  4658.                                 else
  4659.  
  4660.  
  4661.                                     if (userInput[8] < userInput[9])
  4662.                                         min = userInput[8]; //userInput[8] is min
  4663.                                     else
  4664.  
  4665.                                         min = userInput[9]; //userInput[9] is min
  4666.                             else
  4667.  
  4668.  
  4669.                                 if (userInput[7] < userInput[8])
  4670.  
  4671.                                     if (userInput[7] < userInput[9])
  4672.                                         min = userInput[7]; //userInput[7] is min
  4673.                                     else
  4674.  
  4675.                                         min = userInput[9]; //userInput[9] is min
  4676.                                 else
  4677.  
  4678.  
  4679.                                     if (userInput[8] < userInput[9])
  4680.                                         min = userInput[8]; //userInput[8] is min
  4681.                                     else
  4682.  
  4683.                                         min = userInput[9]; //userInput[9] is min
  4684.                         else
  4685.  
  4686.  
  4687.                             if (userInput[6] < userInput[7])
  4688.  
  4689.                                 if (userInput[6] < userInput[8])
  4690.  
  4691.                                     if (userInput[6] < userInput[9])
  4692.                                         min = userInput[6]; //userInput[6] is min
  4693.                                     else
  4694.  
  4695.                                         min = userInput[9]; //userInput[9] is min
  4696.                                 else
  4697.  
  4698.  
  4699.                                     if (userInput[8] < userInput[9])
  4700.                                         min = userInput[8]; //userInput[8] is min
  4701.                                     else
  4702.  
  4703.                                         min = userInput[9]; //userInput[9] is min
  4704.                             else
  4705.  
  4706.  
  4707.                                 if (userInput[7] < userInput[8])
  4708.  
  4709.                                     if (userInput[7] < userInput[9])
  4710.                                         min = userInput[7]; //userInput[7] is min
  4711.                                     else
  4712.  
  4713.                                         min = userInput[9]; //userInput[9] is min
  4714.                                 else
  4715.  
  4716.  
  4717.                                     if (userInput[8] < userInput[9])
  4718.                                         min = userInput[8]; //userInput[8] is min
  4719.                                     else
  4720.  
  4721.                                         min = userInput[9]; //userInput[9] is min
  4722.                     else
  4723.  
  4724.  
  4725.                         if (userInput[5] < userInput[6])
  4726.  
  4727.                             if (userInput[5] < userInput[7])
  4728.  
  4729.                                 if (userInput[5] < userInput[8])
  4730.  
  4731.                                     if (userInput[5] < userInput[9])
  4732.                                         min = userInput[5]; //userInput[5] is min
  4733.                                     else
  4734.  
  4735.                                         min = userInput[9]; //userInput[9] is min
  4736.                                 else
  4737.  
  4738.  
  4739.                                     if (userInput[8] < userInput[9])
  4740.                                         min = userInput[8]; //userInput[8] is min
  4741.                                     else
  4742.  
  4743.                                         min = userInput[9]; //userInput[9] is min
  4744.                             else
  4745.  
  4746.  
  4747.                                 if (userInput[7] < userInput[8])
  4748.  
  4749.                                     if (userInput[7] < userInput[9])
  4750.                                         min = userInput[7]; //userInput[7] is min
  4751.                                     else
  4752.  
  4753.                                         min = userInput[9]; //userInput[9] is min
  4754.                                 else
  4755.  
  4756.  
  4757.                                     if (userInput[8] < userInput[9])
  4758.                                         min = userInput[8]; //userInput[8] is min
  4759.                                     else
  4760.  
  4761.                                         min = userInput[9]; //userInput[9] is min
  4762.                         else
  4763.  
  4764.  
  4765.                             if (userInput[6] < userInput[7])
  4766.  
  4767.                                 if (userInput[6] < userInput[8])
  4768.  
  4769.                                     if (userInput[6] < userInput[9])
  4770.                                         min = userInput[6]; //userInput[6] is min
  4771.                                     else
  4772.  
  4773.                                         min = userInput[9]; //userInput[9] is min
  4774.                                 else
  4775.  
  4776.  
  4777.                                     if (userInput[8] < userInput[9])
  4778.                                         min = userInput[8]; //userInput[8] is min
  4779.                                     else
  4780.  
  4781.                                         min = userInput[9]; //userInput[9] is min
  4782.                             else
  4783.  
  4784.  
  4785.                                 if (userInput[7] < userInput[8])
  4786.  
  4787.                                     if (userInput[7] < userInput[9])
  4788.                                         min = userInput[7]; //userInput[7] is min
  4789.                                     else
  4790.  
  4791.                                         min = userInput[9]; //userInput[9] is min
  4792.                                 else
  4793.  
  4794.  
  4795.                                     if (userInput[8] < userInput[9])
  4796.                                         min = userInput[8]; //userInput[8] is min
  4797.                                     else
  4798.  
  4799.                                         min = userInput[9]; //userInput[9] is min
  4800.             else
  4801.  
  4802.  
  4803.                 if (userInput[3] < userInput[4])
  4804.  
  4805.                     if (userInput[3] < userInput[5])
  4806.  
  4807.                         if (userInput[3] < userInput[6])
  4808.  
  4809.                             if (userInput[3] < userInput[7])
  4810.  
  4811.                                 if (userInput[3] < userInput[8])
  4812.  
  4813.                                     if (userInput[3] < userInput[9])
  4814.                                         min = userInput[3]; //userInput[3] is min
  4815.                                     else
  4816.  
  4817.                                         min = userInput[9]; //userInput[9] is min
  4818.                                 else
  4819.  
  4820.  
  4821.                                     if (userInput[8] < userInput[9])
  4822.                                         min = userInput[8]; //userInput[8] is min
  4823.                                     else
  4824.  
  4825.                                         min = userInput[9]; //userInput[9] is min
  4826.                             else
  4827.  
  4828.  
  4829.                                 if (userInput[7] < userInput[8])
  4830.  
  4831.                                     if (userInput[7] < userInput[9])
  4832.                                         min = userInput[7]; //userInput[7] is min
  4833.                                     else
  4834.  
  4835.                                         min = userInput[9]; //userInput[9] is min
  4836.                                 else
  4837.  
  4838.  
  4839.                                     if (userInput[8] < userInput[9])
  4840.                                         min = userInput[8]; //userInput[8] is min
  4841.                                     else
  4842.  
  4843.                                         min = userInput[9]; //userInput[9] is min
  4844.                         else
  4845.  
  4846.  
  4847.                             if (userInput[6] < userInput[7])
  4848.  
  4849.                                 if (userInput[6] < userInput[8])
  4850.  
  4851.                                     if (userInput[6] < userInput[9])
  4852.                                         min = userInput[6]; //userInput[6] is min
  4853.                                     else
  4854.  
  4855.                                         min = userInput[9]; //userInput[9] is min
  4856.                                 else
  4857.  
  4858.  
  4859.                                     if (userInput[8] < userInput[9])
  4860.                                         min = userInput[8]; //userInput[8] is min
  4861.                                     else
  4862.  
  4863.                                         min = userInput[9]; //userInput[9] is min
  4864.                             else
  4865.  
  4866.  
  4867.                                 if (userInput[7] < userInput[8])
  4868.  
  4869.                                     if (userInput[7] < userInput[9])
  4870.                                         min = userInput[7]; //userInput[7] is min
  4871.                                     else
  4872.  
  4873.                                         min = userInput[9]; //userInput[9] is min
  4874.                                 else
  4875.  
  4876.  
  4877.                                     if (userInput[8] < userInput[9])
  4878.                                         min = userInput[8]; //userInput[8] is min
  4879.                                     else
  4880.  
  4881.                                         min = userInput[9]; //userInput[9] is min
  4882.                     else
  4883.  
  4884.  
  4885.                         if (userInput[5] < userInput[6])
  4886.  
  4887.                             if (userInput[5] < userInput[7])
  4888.  
  4889.                                 if (userInput[5] < userInput[8])
  4890.  
  4891.                                     if (userInput[5] < userInput[9])
  4892.                                         min = userInput[5]; //userInput[5] is min
  4893.                                     else
  4894.  
  4895.                                         min = userInput[9]; //userInput[9] is min
  4896.                                 else
  4897.  
  4898.  
  4899.                                     if (userInput[8] < userInput[9])
  4900.                                         min = userInput[8]; //userInput[8] is min
  4901.                                     else
  4902.  
  4903.                                         min = userInput[9]; //userInput[9] is min
  4904.                             else
  4905.  
  4906.  
  4907.                                 if (userInput[7] < userInput[8])
  4908.  
  4909.                                     if (userInput[7] < userInput[9])
  4910.                                         min = userInput[7]; //userInput[7] is min
  4911.                                     else
  4912.  
  4913.                                         min = userInput[9]; //userInput[9] is min
  4914.                                 else
  4915.  
  4916.  
  4917.                                     if (userInput[8] < userInput[9])
  4918.                                         min = userInput[8]; //userInput[8] is min
  4919.                                     else
  4920.  
  4921.                                         min = userInput[9]; //userInput[9] is min
  4922.                         else
  4923.  
  4924.  
  4925.                             if (userInput[6] < userInput[7])
  4926.  
  4927.                                 if (userInput[6] < userInput[8])
  4928.  
  4929.                                     if (userInput[6] < userInput[9])
  4930.                                         min = userInput[6]; //userInput[6] is min
  4931.                                     else
  4932.  
  4933.                                         min = userInput[9]; //userInput[9] is min
  4934.                                 else
  4935.  
  4936.  
  4937.                                     if (userInput[8] < userInput[9])
  4938.                                         min = userInput[8]; //userInput[8] is min
  4939.                                     else
  4940.  
  4941.                                         min = userInput[9]; //userInput[9] is min
  4942.                             else
  4943.  
  4944.  
  4945.                                 if (userInput[7] < userInput[8])
  4946.  
  4947.                                     if (userInput[7] < userInput[9])
  4948.                                         min = userInput[7]; //userInput[7] is min
  4949.                                     else
  4950.  
  4951.                                         min = userInput[9]; //userInput[9] is min
  4952.                                 else
  4953.  
  4954.  
  4955.                                     if (userInput[8] < userInput[9])
  4956.                                         min = userInput[8]; //userInput[8] is min
  4957.                                     else
  4958.  
  4959.                                         min = userInput[9]; //userInput[9] is min
  4960.                 else
  4961.  
  4962.  
  4963.                     if (userInput[4] < userInput[5])
  4964.  
  4965.                         if (userInput[4] < userInput[6])
  4966.  
  4967.                             if (userInput[4] < userInput[7])
  4968.  
  4969.                                 if (userInput[4] < userInput[8])
  4970.  
  4971.                                     if (userInput[4] < userInput[9])
  4972.                                         min = userInput[4]; //userInput[4] is min
  4973.                                     else
  4974.  
  4975.                                         min = userInput[9]; //userInput[9] is min
  4976.                                 else
  4977.  
  4978.  
  4979.                                     if (userInput[8] < userInput[9])
  4980.                                         min = userInput[8]; //userInput[8] is min
  4981.                                     else
  4982.  
  4983.                                         min = userInput[9]; //userInput[9] is min
  4984.                             else
  4985.  
  4986.  
  4987.                                 if (userInput[7] < userInput[8])
  4988.  
  4989.                                     if (userInput[7] < userInput[9])
  4990.                                         min = userInput[7]; //userInput[7] is min
  4991.                                     else
  4992.  
  4993.                                         min = userInput[9]; //userInput[9] is min
  4994.                                 else
  4995.  
  4996.  
  4997.                                     if (userInput[8] < userInput[9])
  4998.                                         min = userInput[8]; //userInput[8] is min
  4999.                                     else
  5000.  
  5001.                                         min = userInput[9]; //userInput[9] is min
  5002.                         else
  5003.  
  5004.  
  5005.                             if (userInput[6] < userInput[7])
  5006.  
  5007.                                 if (userInput[6] < userInput[8])
  5008.  
  5009.                                     if (userInput[6] < userInput[9])
  5010.                                         min = userInput[6]; //userInput[6] is min
  5011.                                     else
  5012.  
  5013.                                         min = userInput[9]; //userInput[9] is min
  5014.                                 else
  5015.  
  5016.  
  5017.                                     if (userInput[8] < userInput[9])
  5018.                                         min = userInput[8]; //userInput[8] is min
  5019.                                     else
  5020.  
  5021.                                         min = userInput[9]; //userInput[9] is min
  5022.                             else
  5023.  
  5024.  
  5025.                                 if (userInput[7] < userInput[8])
  5026.  
  5027.                                     if (userInput[7] < userInput[9])
  5028.                                         min = userInput[7]; //userInput[7] is min
  5029.                                     else
  5030.  
  5031.                                         min = userInput[9]; //userInput[9] is min
  5032.                                 else
  5033.  
  5034.  
  5035.                                     if (userInput[8] < userInput[9])
  5036.                                         min = userInput[8]; //userInput[8] is min
  5037.                                     else
  5038.  
  5039.                                         min = userInput[9]; //userInput[9] is min
  5040.                     else
  5041.  
  5042.  
  5043.                         if (userInput[5] < userInput[6])
  5044.  
  5045.                             if (userInput[5] < userInput[7])
  5046.  
  5047.                                 if (userInput[5] < userInput[8])
  5048.  
  5049.                                     if (userInput[5] < userInput[9])
  5050.                                         min = userInput[5]; //userInput[5] is min
  5051.                                     else
  5052.  
  5053.                                         min = userInput[9]; //userInput[9] is min
  5054.                                 else
  5055.  
  5056.  
  5057.                                     if (userInput[8] < userInput[9])
  5058.                                         min = userInput[8]; //userInput[8] is min
  5059.                                     else
  5060.  
  5061.                                         min = userInput[9]; //userInput[9] is min
  5062.                             else
  5063.  
  5064.  
  5065.                                 if (userInput[7] < userInput[8])
  5066.  
  5067.                                     if (userInput[7] < userInput[9])
  5068.                                         min = userInput[7]; //userInput[7] is min
  5069.                                     else
  5070.  
  5071.                                         min = userInput[9]; //userInput[9] is min
  5072.                                 else
  5073.  
  5074.  
  5075.                                     if (userInput[8] < userInput[9])
  5076.                                         min = userInput[8]; //userInput[8] is min
  5077.                                     else
  5078.  
  5079.                                         min = userInput[9]; //userInput[9] is min
  5080.                         else
  5081.  
  5082.  
  5083.                             if (userInput[6] < userInput[7])
  5084.  
  5085.                                 if (userInput[6] < userInput[8])
  5086.  
  5087.                                     if (userInput[6] < userInput[9])
  5088.                                         min = userInput[6]; //userInput[6] is min
  5089.                                     else
  5090.  
  5091.                                         min = userInput[9]; //userInput[9] is min
  5092.                                 else
  5093.  
  5094.  
  5095.                                     if (userInput[8] < userInput[9])
  5096.                                         min = userInput[8]; //userInput[8] is min
  5097.                                     else
  5098.  
  5099.                                         min = userInput[9]; //userInput[9] is min
  5100.                             else
  5101.  
  5102.  
  5103.                                 if (userInput[7] < userInput[8])
  5104.  
  5105.                                     if (userInput[7] < userInput[9])
  5106.                                         min = userInput[7]; //userInput[7] is min
  5107.                                     else
  5108.  
  5109.                                         min = userInput[9]; //userInput[9] is min
  5110.                                 else
  5111.  
  5112.  
  5113.                                     if (userInput[8] < userInput[9])
  5114.                                         min = userInput[8]; //userInput[8] is min
  5115.                                     else
  5116.  
  5117.                                         min = userInput[9]; //userInput[9] is min
  5118.  
  5119.                
  5120.     std::cout << "max: " << max << " min: " << min << "\n";
  5121.     system("pause");
  5122.     return (max - min);
  5123. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement