Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class ClienteComplejo {
- public static void main(String[] args){
- Scanner lee=new java.util.Scanner(System.in);
- double x,y,z,k;
- System.out.println("introduzca 4 numeros");
- x= lee.nextDouble();//this.x
- y= lee.nextDouble();//this.y
- z= lee.nextDouble();//z.x
- k= lee.nextDouble();//z.y
- Complejos z1 = new Complejos(x,y);
- Complejos z2 = new Complejos(x,y);
- Complejos z3 = z1.suma.(z2);
- for(int i = 0; i < 100; i++){
- new Complejos(i,i+1);
- }
- System.out.println("La suma es "+ getReal() + "+" + getImaginaria() + getNumbObjetos());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement