Solution | URI Online Judge | 1004 Simple Product

URI Online Judge | 1004

Simple Product

Adapted by Neilor Tonin, URI  Brazil
Timelimit: 1
Read two integer values. After this, calculate the product between them and store the result in a variable namedPROD. 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

সল্যুশন্সঃ 
#include<iostream>
using namespace std;
main()
{
    int x, y;
    cin >> x;
    cin >> y;
    cout << "PROD = " << x*y << endl;

    return 0;
}

আলোচনাঃ 
কোনো টপিক না বুঝলে অবশ্যই কমেন্টস করবেন। কোড কপি পেষ্ট না করে আগে বুঝুন দেন নিজে নিজে করুন। কোডিং এর মজা টা বুঝবেন।

Comments

Popular posts from this blog

Solution - Codeforces Problem 327B - Hungry Sequence

Solution - Timus Problem 1293. Eniya

Solution - Timus Problem 1409. Two Gangsters