URI Online Judge Solution 1075 Remaining 2 Solution in C, C++, Java, Python and C#-

URI Online Judge Solution URI Solution -Beginner

URI Online Judge Solution 1075 Remaining 2  Solution in C, C++, Java, Python and C#- 

URI Online Judge Solution 1075 Remaining 2  | Beginner
URI Problem Link – https://www.urionlinejudge.com.br/judge/en/problems/view/1075

Problem Name: 1075 Remaining 2
Problem Number : URI – 1075 Remaining 2
Online Judge : URI Online Judge Solution
Category: Beginner
Solution Language : C,C plus plus, java, python, c#(c sharp)

https://www.urionlinejudge.com.br/judge/en/problems/view/1075

URI Solution 1075 Remaining 2  Code in C:

#include <stdio.h>

int main()
{
int n, i;

scanf("%i", &n);

for (i = 1; i <= 10000; ++i)
{
if(i % n == 2){
printf("%in", i);
}
}

return 0;
}

URI Solution 1075 Remaining 2  Code / URI 1075 Remaining 2  solution in CPP:

#include <cstdio>
int main()
{
int n;

scanf("%i", &n);

for (int i = 1; i <= 10000; ++i)
{
if(i % n == 2){
printf("%in", i);
}
}

return 0;
}

URI Solution 1075 Remaining 2  Code / URI 1075 Remaining 2   solution in Java:

import java.util.Scanner;

public class Main {

public static void main(String[] args) {

int N;
Scanner input =new Scanner(System.in);

N =input.nextInt();
for (int i = 0; ((N*i) + 2) < 10000; i++) {
System.out.print((N*i) + 2+"n");
}
}
}

URI Solution 1075 Remaining 2  Code / URI 1075 Remaining 2  solution in  Python:

URI Solution 1075 Remaining 2  Code / URI 1075 Remaining 2  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 1075 Remaining 2 code in C, URI 1075 Remaining 2 code in C++, URI Area of a circle solution in C, URI solution, URI 1075 Remaining 2 solution in C,URI 1075 Remaining 2 solution in C++-CPP,URI 1075 Remaining 2 solution in C# (C sharp),URI 1075 Remaining 2  solution in Java,URI 1002 solution in Python,

Leave a Reply

Your email address will not be published.