Ticker

6/recent/ticker-posts

C programming, Multiply two floating-point numbers.


#include <stdio.h>
int main() {
    double a, b, product;
    printf("Enter two numbers: ");
    scanf("%lf %lf", &a, &b);  
    product = a * b;
    printf("Product = %.2lf", product);    
    return 0;
}

Post a Comment

0 Comments