#include <stdio.h>

int main() {
    int a = 10;
    int b = 20;

    float c = 10;
    float d = 20;

    printf("a + b = %d\n", a + b);
    printf("a - b = %d\n", a - b);
    printf("a * b = %d\n", a * b);
    printf("a / b = %d\n", a / b);

    printf("c + d = %f\n", c + d);
    printf("c - d = %f\n", c - d);
    printf("c * d = %f\n", c * d);
    printf("c / d = %f\n", c / d);

    return 0;
}

Embed on website

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