Table of Contents

Simple Product

Read two integer values. After this, calculate the product between them and store the result in a variable named PROD. Print the result like the example below. Do not forget to print the end of line after the result, otherwise you will receive “Presentation Error”.

Input

The input file contains 2 integer numbers.

Output

Print PROD according to the following example, with a blank space before and after the equal signal.

Input SamplesOutput Samples
3
9
PROD = 27
-30
10
PROD = -300
0
9
PROD = 0

SOLVE

#include <stdio.h>

int main()
{

    int A,B,prod;
    scanf("%d",&A);
    scanf("%d",&B);

    prod = A * B;
    printf("PROD = %d\n",prod);

    return 0;
}
Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn
Share on pinterest
Pinterest
Share on whatsapp
WhatsApp
Share on email
Email
Md. Nurnobi Hosen
Md. Nurnobi Hosen

Student of Computer Science and Engineering at Daffodil International University,Main Campus ,Dhanmondi.
Web and App Developer also expart of wordpress customization

All Blog Posts »
Subscribe
Notify of
guest
1 Comment
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
oprolevorter
oprolevorter
December 11, 2019 3:27 AM

Great post, you have pointed out some good points, I also conceive this s a very superb website.

1
0
Would love your thoughts, please comment.x
()
x