URI Online Judge | 1078 Multiplication Table – Solution in C, C++, Java, Python and C#

URI Online Judge Solution URI Solution -Beginner

URI Online Judge | 1078 Multiplication Table – Solution in C, C++, Java, Python and C#

URI Online Judge Solution 1078 Multiplication Table | Beginner
URI Problem Link – https://www.urionlinejudge.com.br/judge/en/problems/view/1078

Problem Name: 1078 Multiplication Table
Problem Number : URI – 1078 Multiplication Table
Online Judge : URI Online Judge Solution
Category: Beginner
Solution Language : C,C plus plus, java, python, c#(c sharp)

URI Online Judge | 1078 Multiplication Table - Solution in C, C++, Java, Python and C#

URI Solution 1078 Multiplication Table Code in C:

#include<stdio.h>

int main()
{
int N, i;
scanf("%d", &N);

for (i = 1; i <= 10; i++) {
printf("%d x %d = %dn", i,N,i*N);
}
}

URI Solution 1078 Multiplication Table Code / URI 1078 Multiplication Table solution in CPP:

Type 1 – Simple 
#include <cstdio>

int main()
{
int n;

scanf("%i", &n);

printf("1 x %i = %in", n, n);
printf("2 x %i = %in", n, n * 2);
printf("3 x %i = %in", n, n * 3);
printf("4 x %i = %in", n, n * 4);
printf("5 x %i = %in", n, n * 5);
printf("6 x %i = %in", n, n * 6);
printf("7 x %i = %in", n, n * 7);
printf("8 x %i = %in", n, n * 8);
printf("9 x %i = %in", n, n * 9);
printf("10 x %i = %in", n, n * 10);

return 0;
}
Type 2 – Little nicer
#include <iostream>

using namespace std;

int main(int argc, const char * argv[])
{
int n, i;

cin >> n;

for (i = 1; i <= 10; i++)
{
cout << i << " x " << n << " = " << i*n << endl;
}


return 0;
}

URI Solution 1078 Multiplication Table Code / URI 1078 Multiplication Table solution in Java:


import java.util.Scanner;

/**
140
1 x 140 = 140
2 x 140 = 280
*/
public class Main {

public static void main(String[] args) {
int N;
Scanner input=new Scanner(System.in);
N =input.nextInt();
for (int i = 1; i <= 10; i++) {
System.out.print(i+" x "+N+" = "+(i*N)+"n");
}

}

}

URI Solution 1078 Multiplication Table Code / URI 1078 Multiplication Table solution in  Python:

URI Solution 1078 Multiplication Table Code / URI 1078 Multiplication Table solution in  C# (C Sharp):

Demonstration:

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 1078 Multiplication Table  code in C, URI 1078 Multiplication Table code in C++, URI 1078 Multiplication Table  solution in C, URI solution, URI 1078 Multiplication Table solution in C,URI 1002 solution in C++-CPP,URI 1078 Multiplication Table solution in C# (C sharp),URI 1078 Multiplication Table solution in Java,URI 1078 Multiplication Table solution in Python,URI Online Judge Solution, URI Solution – Beginner,

Leave a Reply

Your email address will not be published.