#include <stdio.h>
#include <math.h>

typedef struct {
    float x;
    float y;
} Vector;

typedef struct {
    float tiempo;
} Tiempo;

int main() {
    Vector desplazamiento1 = {5 * cos(45 * M_PI / 180), 5 * sin(45 * M_PI / 180)};
    Vector desplazamiento2 = {3 * cos(120 * M_PI / 180), 3 * sin(120 * M_PI / 180)};
    Tiempo tiempo1 = {5 / 2}; // tiempo para el primer desplazamiento
    Tiempo tiempo2 = {3 / 2}; // tiempo para el segundo desplazamiento

    printf("Desplazamiento 1: (%.2f, %.2f)\n", desplazamiento1.x, desplazamiento1.y);
    printf("Desplazamiento 2: (%.2f, %.2f)\n", desplazamiento2.x, desplazamiento2.y);

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: