#include <stdio.h>
#include <math.h>
double norma(double x, double y) {
return sqrt( pow(x,2.0) + pow(y,2.0) );
}
int main() {
// vettore (x,y)
double x = 0.0;
double y = 1.0;
printf("|(%.2lf,%.2lf)| = %lf", x,y,norma(x,y)) ;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: