Answers for "multiplication of two numbers in c"

C
4

addition of two numbers in c

int num1,num2;
printf("%d",num1+num2);
Posted by: Guest on July-30-2020
0

multiplication of two numbers in c

int num1,num2;
printf("%d",num1*num2);
Posted by: Guest on July-30-2020
0

C multiply

// 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;
}
Posted by: Guest on September-16-2020

Code answers related to "multiplication of two numbers in c"

Code answers related to "C"

Browse Popular Code Answers by Language