Created
March 18, 2012 16:13
-
-
Save sanrodari/2076530 to your computer and use it in GitHub Desktop.
Tercer ejercicio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example; | |
public class Ejercicio { | |
public static void main(String[] args) | |
{ | |
int a, b, c, d; | |
a = 5; | |
b = 2; | |
c = a + b; | |
d = 15 % 20 + c * b / 2; | |
a = a + b + c + d; | |
b = (int) ( (b - 1 + b * b) * Math.sqrt((b + c + 1) - 4) ); | |
d = (int) (b + 2 * Math.sqrt(64)); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example; | |
public class Expresiones { | |
public static void main(String[] args) { | |
double tercero = (3.0 + 4) / (5 - 2); | |
double x = 1; // Cualquier valor. | |
double y = 1; // Cualquier valor. | |
double quinto = (Math.pow((4*x), (Math.sqrt(3 * x * x + 1))) ) - ( (2 * x * x * x) / (Math.pow(x, 4) + y) ); | |
System.out.println(quinto); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment