Skip to content

Instantly share code, notes, and snippets.

@sanrodari
Created March 18, 2012 16:13
Show Gist options
  • Save sanrodari/2076530 to your computer and use it in GitHub Desktop.
Save sanrodari/2076530 to your computer and use it in GitHub Desktop.
Tercer ejercicio
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));
}
}
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