Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main (void) {
- int v1, v2, v3, v4, v5, v6;
- printf("Coordenadas cartesianas primer vector (separadas por espacio):");
- scanf("%d" ,&v1);
- scanf("%d" ,&v2);
- scanf("%d" ,&v3);
- printf("Coordenadas cartesianas segundo vector (separadas por espacio):");
- scanf("%d" ,&v4);
- scanf("%d" ,&v5);
- scanf("%d" ,&v6);
- int producto;
- producto = v1*v4+v2*v5+v3*v6;
- printf("Producto escalar: %d" ,producto);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement