multiplication of two numbers in c
snippet in c

addition of two numbers in c

user3483

int num1,num2;
printf("%d",num1+num2);

multiplication of two numbers in c

user7725

int num1,num2;
printf("%d",num1*num2);

C multiply

user8837

// Program to multiply 2 numbers from user inputs

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

    // Result up to 2 decimal point is displayed using %.2lf
    printf("Product = %.2lf", product);
    
    return 0;
}