URI Online Judge 1004 | (Simple Product) Solution

Solve of URI 1004 (Simple Product) in C & C++


Problem Description of URI Online Judge 1004:


Problem number:
1004.
Problem name: Simple Product.
Problem level: 1.
Problem category: Beginner.
Points: 1.3 points
Base time limit: 1 second.
Memory limit: 200 MB.
Problem subject: Sequential.
Problem adapted by: Neilor Tonin (Brazil).
Link: https://www.urionlinejudge.com.br/judge/en/problems/view/1004
Solution language: C & C++
My profile: https://www.urionlinejudge.com.br/judge/en/profile/38770


Solution of URI 1004 in C:


//URI online judge 1004 solution in C
//This solution is made and uploaded by Mehedi Hasan Kajol 
#include<stdio.h>
int main(void){
     int a,b;
     long long int result;
     scanf("%d%d", &a, &b);
     result = a * b;
     printf("PROD = %lld\n", result);
     return 0;
}



Solution of URI 1004 in C++:


//URI online judge 1004 solution in C++ 
//This solution is made and uploaded by Mehedi Hasan Kajol 
#include<iostream>
using namespace std;
int main(void){
     int a , b;
     long int result;
     cin >> a >> b;
     result = a * b;
     cout << "PROD = " << result << endl;
     return 0;
}


Post a Comment

Previous Post Next Post