#include <stdio.h>

int main() {
    double num1, num2, result;

    printf("Enter the first number: ");
    scanf("%lf", &num1);

    printf("Enter the second number: ");
    scanf("%lf", &num2);

    if (num2 != 0) {
        result = num1 / num2;
        printf("Result of %.2lf divided by %.2lf is %.2lf\n", num1, num2, result);
    } else {
        printf("Division is not possible because the second number is zero.\n");
    }

    return 0;
}

Embed on website

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