1 | //Get the minumum of the two numbers |
---|
2 | int min(int num1, int sum2) |
---|
3 | { |
---|
4 | bool isFormerLarger = false; |
---|
5 | if(num1>sum2) |
---|
6 | { |
---|
7 | isFormerLarger = true; |
---|
8 | } |
---|
9 | if(isFormerlarger){ |
---|
10 | return num2; |
---|
11 | } |
---|
12 | else |
---|
13 | {return num1;} |
---|
14 | |
---|
15 | } |
---|
16 | //correct formatted number analysis program for test |
---|
17 | void numberAnaly(int start, int end) |
---|
18 | { |
---|
19 | int sum = 0; |
---|
20 | int i = 0; |
---|
21 | int count = end-start+1; |
---|
22 | for(i=0;i<count ;i++) |
---|
23 | { |
---|
24 | sum+=start+i; } |
---|
25 | int ave = sum; |
---|
26 | /*comments testing joijoj749174918^*&%*()(%$%^_)(*&^%$# |
---|
27 | */ |
---|
28 | ave/=count; |
---|
29 | ave = sum/count; |
---|
30 | int binary189 = 0B10101010; |
---|
31 | string test = "ajofiahojoi$%^&*()_\"#$%^&*()"; |
---|
32 | return; |
---|
33 | } |
---|