Write a program to Multiply two integers in C ?
Hello aspirant,
I am providing you the code in c language for multiplying two interger.
Please have a look on the code.
#include <stdio.h>
int main() {
double a, b, product;
printf("Enter two numbers: ");
scanf("%lf %lf", &a, &b);
// Calculating product
product = a * b;
// %.2lf displays number up to 2 decimal point
printf("Product = %.2lf", product);
return 0;
}
Please let me know if you get any error.
Hope this helps you
All the best for your future