<span>public class ExampleMinNumber <span>{
</span></span><span> public static void main(String[] args) <span>{
</span></span>int a = 11<span>;
</span> int b = 6<span>;
</span><span> int c = minFunction(a, b);
</span><span> System.out.println("Minimum Value = " + c<span>);
}
</span></span><span>/** returns the minimum of two numbers */
</span><span>public static int minFunction(int n1, int n2) <span>{
</span></span>int min<span>;
</span>if (n1 > n2<span>)
</span>min = n2<span>;
else
min = n1;
return min;
}
}
</span>java 8.0
Answer:
it's not a website but on insta there's an account that freezes people's phone when you click on their story.
Explanation:
Answer:
A
Binary numbers use only the digits 0 and 1; decimal numbers use 0 through 9.
Explanation:
Binary means in couples of two. So you count using 0s and 1s like 01, 10, 11, 100, 101, 110, 111, and so on.
Answer:
// Program is written in Coral Programming Language
// Comments are used for explanatory purpose
// Declare and input n; n stands for the number of input data
integer n
n = Get next input
// Declare and initialise two Variables to 0;
// The first Variable Sum, is used for addition and the second, Max is used for the max
integer sum
integer max
Sum = 0
Max = 0
// Declare and intialise Variable count to hold the number of positive input data
integer count
count = 0
// Declare array. The array is used to hold all input data
integer array(n) Arr
// Declare iterating variable I
integer i
//Use the following iterative statement to input array data
for i = 0; i < Arr.size; i = i + 1
Arr[I] = Get next input
if Arr[i] >= 0
Sum = Sum + Arr[i]
count = count + 1
if Arr[i] >= Max
Max = Arr[I]
// Declare Variable average
float average
//Calculate and print average
average = Sum/count
Put average to output
Put Max to output