/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static double suma(double n, double m){
double suma = n + m;
return suma;
}
static double resta(double n, double m){
double resta = n - m;
return resta;
}
static double multiplica(double n, double m){
double multiplica = n * m;
return multiplica;
}
static double cuadrado(double n){
double cuadrado
= Math.
sqrt(10); return cuadrado;
}
System.
out.
println(suma
(4,
10)); System.
out.
println(resta
(4,
10)); System.
out.
println(multiplica
(4,
10)); System.
out.
println(cuadrado
(10));
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCQoJcHVibGljIHN0YXRpYyBkb3VibGUgc3VtYShkb3VibGUgbiwgZG91YmxlIG0pewoJCWRvdWJsZSBzdW1hID0gbiArIG07CgkJcmV0dXJuIHN1bWE7Cgl9CgoJc3RhdGljIGRvdWJsZSByZXN0YShkb3VibGUgbiwgZG91YmxlIG0pewoJCWRvdWJsZSByZXN0YSA9IG4gLSBtOwoJCXJldHVybiByZXN0YTsKCX0KCglzdGF0aWMgZG91YmxlIG11bHRpcGxpY2EoZG91YmxlIG4sIGRvdWJsZSBtKXsKCQlkb3VibGUgbXVsdGlwbGljYSA9IG4gKiBtOwoJCXJldHVybiBtdWx0aXBsaWNhOwoJfQoKCXN0YXRpYyBkb3VibGUgY3VhZHJhZG8oZG91YmxlIG4pewoJCWRvdWJsZSBjdWFkcmFkbyA9IE1hdGguc3FydCgxMCk7CgkJcmV0dXJuIGN1YWRyYWRvOwoJfQoJCglwdWJsaWMgc3RhdGljIHZvaWQg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