Q.) multiplication of two no. in C by getting input from user ?
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,product; //declaring variable
printf("Enter two numbers :");
scanf("%d%d",&a,&b);
product = a * b;
printf("product of two numbers :%d",product);
getch();
}
Output
Enter two numbers :5 8 /* say a = 5 & b = 8 */.
product of two numbers :40