#include <stdio.h>

int main() {
    int x;
    float y;
    
    x = 6;
    y = 2.0f;

    printf("x = %d\n", x);
    printf("y = %.2f\n", y);

    printf("a) x * y = %.2f\n", x * y);

    printf("b) x / y = %.2f\n", x / y);
    
    printf("c) x %% y = %d\n", x % (int)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: