/* ********************************* */ /* CPE 101 Fall 2009 */ /* Lab 1 */ /* Foo program */ /* */ /* Alexander Dekhtyar */ /* ********************************* */ #include #include int main() { int x, y; float length; printf("Computing the length of a vector!\n"); printf("Enter X: "); scanf("%d", &x); printf("Enter Y: "); scanf("%d", &y); length = sqrt(x*x+y*y); printf("\nThe length of the vector (%i, %i) = %f\n", x,y, length); return 0; }