Advertisement
Fran0031

Ejercicio 10 Boletín 1

Nov 10th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | None | 0 0
  1. #include <stdio.h>
  2. int main (void) {
  3.     int v1, v2, v3, v4, v5, v6;
  4.     printf("Coordenadas cartesianas primer vector (separadas por espacio):");
  5.     scanf("%d" ,&v1);
  6.     scanf("%d" ,&v2);
  7.     scanf("%d" ,&v3);
  8.     printf("Coordenadas cartesianas segundo vector (separadas por espacio):");
  9.     scanf("%d" ,&v4);
  10.     scanf("%d" ,&v5);
  11.     scanf("%d" ,&v6);
  12.     int producto;
  13.     producto = v1*v4+v2*v5+v3*v6;
  14.     printf("Producto escalar: %d" ,producto);
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement