# how to get product of two numbers

closed Jun 14
closed with the note: Since it has been answered

answered Sep 20, 2019 by anonymous
what is meaning of product ?

Ans:- multiplcation of two numbers(a*b)

same thing should be done in programming way with syntax

main()

{

int a,b;

printf("enter the two nos");

scanf("%d %d",&a,&b);

printf("product is %d ",a*b);

}
–1 vote
answered Sep 20, 2019 by anonymous
#include<stdio.h>

void main()

{

int first, second, product;

printf("Enter first and second integer");

scanf("%d%d",&first, &second);

product = first*second;

return 0;

}
commented Sep 26, 2019 by (120 points)
return 0; not needed
answered Jun 10 by (470 points)
#include<stdio.h>
main()
{
int a,b,product;

printf("enter the value of a :\n");
scanf("%d",&a);
printf("enter the value of b :\n");
scanf("%d",&b);
product=a*b;
printf("the product of the entered numbers is %d",product);
}
answered Jun 11 by (190 points)

#include<stdio.h>

{

int main()

int a,b,c;

printf("Enter the value of a: \n");

scanf("%d",&a);

printf("Enter the value of b: \n");

scanf("%d",&b);

c=a*b;

printf("multiplication is %d",c);

return 0;

}