Computer Science, asked by anindyaadhikari13, 2 months ago

Python code to display highest among 50 numbers. ​

Answers

Answered by BrainlyProgrammer
7

Question:-

  • Python code to display highest among 50 numbers.
  • There are two ways to solve this code

Code: Using if statement

k=0

print("Enter 50 numbers")

for i in range(1,51):

n=(int)(input())

if(k<n):

k=n

print("Maximum number:",k)

___________________

Explaination:-

  • The program runs I loop from 1 to 50
  • Each iteration, the program accept the number from the user
  • Once I>50, loop terminates
  • Soon the program displays the maximum number
Answered by bhaskarpinapaka42
0

Answer:

please mark mee as brainlist

Similar questions