URI Online Judge Solution 1080 Highest and Position Solution in C, C++, Java, Python and C#

URI Online Judge Solution URI Solution -Beginner

URI Online Judge Solution 1080 Highest and Position – Solution in C, C++, Java, Python and C#

URI Online Judge Solution 1080 Highest and Position  | Beginner
URI Problem Link –  link

Problem Name: 1080 Highest and Position
Problem Number : URI – 1080 Highest and Position
Online Judge : URI Online Judge Solution
Category: Beginner
Solution Language : C,C plus plus, java, python, c#(c sharp)

URI Solution 1080 Highest and Position Code in C:

#include <stdio.h>

int main()
{
int n, max = -1, p, i;
for (i = 1; i < 101; ++i)
{
scanf("%d", &n);
if(max < n)
max = n, p = i;
}

printf("%dn%dn", max, p);

return 0;
}

URI Solution 1080 Highest and Position Code / URI solution in CPP:

#include <stdio.h>

int main(int argc, char const *argv[])
{
int n, max = -1, p;
for (int i = 1; i < 101; ++i)
{
scanf("%d", &n);
if(max < n)
max = n, p = i;
}

printf("%dn%dn", max, p);

return 0;
}

URI Solution 1080 Highest and Position  Code / URI solution in Java:

import java.util.Scanner;

public class Main
{
public static void main(String[] args)
{
int N =100, X, highest = 0,position = 0;
Scanner input =new Scanner(System.in);
for (int i = 1; i <= N; i++)
{
X =input.nextInt();

if (highest > X)
{
highest = highest;
position = position;
}
else
{
highest = X;
position = i;
}

}
System.out.print(highest+"n"+position+"n");
}
}

URI Solution  1080 Highest and Position Code / URI solution in  Python:

URI Solution Code / URI  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 1080 Highest and Position  code in C, URI 1080 Highest and Position code in C++, URI 1080 Highest and Position solution in C, URI solution, URI 1080 Highest and Position solution in C,URI 1080 Highest and Position solution in C++-CPP,URI 1080 Highest and Position solution in C# (C sharp),URI 1080 Highest and Position solution in Java,URI 1080 Highest and Position solution in Python,

Leave a Reply

Your email address will not be published.