Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class testVecteur{
- import java.util.Scanner;
- public static void main(){
- Scanner sc=new Scanner(System.in);
- System.out.println("x1=");
- int x1 = sc.nextInt();
- System.out.println("\ny1=");
- int y1 = sc.nextInt();
- System.out.println("\nx2=");
- int x2 = sc.nextInt();
- System.out.println("\ny2=");
- int y2 = sc.nextInt();
- Vecteur v1 = new Vecteur(x1,y1);
- Vecteur v2 = new Vecteur(x2,y2);
- System.out.println(v1.Produitscalaire(x2,y2));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement