Advertisement
M1RAI

testVecteur.class

Oct 13th, 2021
832
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1. public class testVecteur{
  2.     import java.util.Scanner;
  3.     public static void main(){
  4.         Scanner sc=new Scanner(System.in);
  5.         System.out.println("x1=");
  6.         int x1 = sc.nextInt();
  7.         System.out.println("\ny1=");
  8.         int y1 = sc.nextInt();
  9.         System.out.println("\nx2=");
  10.         int x2 = sc.nextInt();
  11.         System.out.println("\ny2=");
  12.         int y2 = sc.nextInt();
  13.         Vecteur v1 = new Vecteur(x1,y1);
  14.         Vecteur v2 = new Vecteur(x2,y2);
  15.         System.out.println(v1.Produitscalaire(x2,y2));        
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement