Welcome

>>>Welcome to my "CODE BAZAR"
Code marshal
URI online judge
Others
Code marshal
URI online judge
Others
Code marshal
URI online judge
Others

Update ✔✔✔ Upcoming programming book (.pdf) "Programming Contest (data structures and algorithms) by Md. Mahbub Hasan & "Graph Algorithms" by Safayat Asraf "****** Date: 20 March, 2019****Hazrat Ali****

Saturday, 5 November 2016

URI-1004

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 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


Solution

#include<stdio.h>
int main()
{
    int a,b,result;
    scanf("%d%d",&a,&b);
    result=a*b;
    printf("PROD = %d\n",result);
    return 0;
}

No comments:

Post a Comment