The scalar product of two vectors and is .
Write a function that returns the scalar product of @u@ and @v@.
| C++ | |
| C | |
| Java | |
| Python | |
| MyPy | |
The vectors @u@ and @v@ have the same size.
You only need to submit the required procedure; your main program will be ignored.