Answer:
public class Main
{
public static void main(String[] args) {
System.out.println(min(3, -2, 7));
}
public static int min(int n1, int n2, int n3){
int smallest = Math.min(Math.min(n1, n2), n3);
return smallest;
}
}
Explanation:
*The code is in Java.
Create a method named min that takes three parameters, n1, n2, and n3
Inside the method:
Call the method Math.min() to find the smallest among n1 and n2. Then, pass the result of this method to Math.min() again with n3 to find the min among three of them and return it. Note that Math.min() returns the smallest number among two parameters.
In the main:
Call the method with parameters given in the example and print the result
The type of windows I am using is:Windows 8.1
Solution :
x = float_(input())
y = float_(input())
z = float_(input())
res1 = x**z
res2 = x**(y**z)
res3 = abs(x-y)
res4 = (x**z)**0.5
print('{:.2f} {:.2f} {:.2f} {:.2f}'.format(res1,res2,res3,res4))
Output is :
5.0
1.5
3.2
172.47 361.66 3.50 13.13
Answer:
You can use Repl.it.com......It's best for practising coding languages...
Answer:
Relationship vs N-ary Relationship
Explanation:
It is not part of the design choice in ER model because N-ary reflects an indefinite form or better still creates an identifying attribute in an ER relationship. Example is the process of creating an auto-generated ID value