#include <iostream>
#include <cmath>
using namespace std;
float norma (float x, float y, float z)
{
return sqrt(x*x + y*y + z*z);
}
int main()
{
//ejm
cout<<"vector: (" << 3 << ", "<< 4 << ", "<< 5 << ") ; ";
cout<<"norma = "<<norma(3, 4, 5)<<endl;
float x, y, z;
cout<<"Introduzca las tres coordenadas de un vector: ";
cin>>x>>y>>z;
cout<<"vector: ("<<x<<","<<y<<","<<z<<")";
cout<<"norma = "<<norma(x, y, z)<<endl;
return 0;
}