2. C Program to do Multiplication and Division of Two Numbers.
How does this program work?
- In this programme you will learn about how to do Multiplication and Division of two numbers.
- Initially you will learn how to scan two numbers and store them in 2variables.
- And then by using the given logic you will get output.
Here is the code
#include <stdio.h>
int main(void)
{
int a, b, div, mul; //Initialise the varibles
printf("Enter two numbers:\n");
scanf("%d%d",&a,&b);
mul=a*b;
div=a/b;
printf("Multiplication of Two numbers: %d*%d=%d\n ",a,b,mul);
printf("Division of Two numbers:%d/%d=%d",a,b,div);
return 0;
}