URI Online Judge Solution 1004 Simple Product Solution in C, C++, Java, Python and C#
URI Online Judge Solution 1004 Simple Product| Beginner
URI Problem Link – 1004 Simple Product – https://www.urionlinejudge.com.br/judge/en/problems/view/1004
Problem Name: 1004 Simple Product code
Problem Number : URI – 1004 Simple Product solution
Online Judge : URI Online Judge Solution
Category: Beginner
Solution Language : C,C plus plus, java, python, c#(c sharp)
Video of Solveing URI online judge problem solution 1004 – See the simple 4 minutes video if you have a little more time – URI online judge solution 1004 in C programming
URI Solution 1004 Code in C/ URI Simple Product solution in C:
#include <stdio.h>
int main()
{
int x,y;
scanf("%d%d", &x, &y);
printf("PROD = %dn", x * y);
return 0;
}
#include <stdio.h>
int main()
{
int x,y;
scanf("%d%d", &x, &y);
printf("PROD = %dn", x * y);
return 0;
}
URI Solution 1004 Code / URI 1004 solution in C++(CPP):
#include <cstdio>
int main()
{
int x,y;
scanf("%d%d", &x, &y);
printf("PROD = %dn", x * y);
return 0;
}
#include <cstdio>
int main()
{
int x,y;
scanf("%d%d", &x, &y);
printf("PROD = %dn", x * y);
return 0;
}
URI Solution 1004 Code / URI 1004 solution in Java:
import java.util.Scanner;
public class Main {
public static void main(String[] args){
int A, B;
Scanner sc = new Scanner(System.in);
A = sc.nextInt();
B = sc.nextInt();
System.out.print("PROD = "+(A*B)+"n");
}
}
import java.util.Scanner;
public class Main {
public static void main(String[] args){
int A, B;
Scanner sc = new Scanner(System.in);
A = sc.nextInt();
B = sc.nextInt();
System.out.print("PROD = "+(A*B)+"n");
}
}
URI Solution 1004 Code / URI 1004 solution in Python:
A = int(input())
B = int(input())
prod = A * B
print("PROD = %d" %prod)
A = int(input())
B = int(input())
prod = A * B
print("PROD = %d" %prod)
URI Solution 1004 Code / URI 1004 solution in C# (C Sharp):
using System;
class URI {
static void Main(string[] args) {
int a, b;
a = Convert.ToInt32(Console.ReadLine());
b=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("PROD = " + (a * b));
Console.ReadKey();
}
}
Demonstration:
It is a simple summation problem. Just take the summation into a variable and print it or just print
a * b.
Remember, as a beginner of URI online judge, put a new line after the solution, otherwise, you’ll get a presentation error.
Just implement this in coding. Since having any problem just put a comment below. Thanks
Tags: URI Online Judge Solution, URI OJ Solution list, URI Problems Solution, URI solver, URI all problem solution list, URI Simple Product code in C, URI 1004 code in C++, URI Simple Product solution in C, URI solution, URI 1004 solution in C,URI 1004 solution in C++-CPP,URI 1004 solution in C# (C sharp),URI 1004 solution in Java,URI 1004 solution in Python,
class URI {
static void Main(string[] args) {
int a, b;
a = Convert.ToInt32(Console.ReadLine());
b=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("PROD = " + (a * b));
Console.ReadKey();
}
}
It is a simple summation problem. Just take the summation into a variable and print it or just print