Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

closed how to get product of two numbers

+7 votes
asked Aug 5, 2019 by anonymous
closed Jun 14, 2020 by Admin
closed with the note: Since it has been answered

15 Answers

0 votes
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 NIKESH S (120 points)
return 0; not needed
0 votes
answered Jun 10, 2020 by mahesh (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);
}
0 votes
answered Jun 11, 2020 by khajesh narayana (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;

}

0 votes
answered Jun 13, 2020 by mahesh (470 points)
#include <stdio.h>
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("the product is %d",c);

}
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...