Easiest Way to Find Largest Number in Coding | Learn Logic with Real-Life Examples #shorts #coding

preview_player
Показать описание
In this Video :

On Day 11 of Programming with Agnel, we break down a classic programming interview question: How to find the largest among 3 numbers?

Instead of confusing syntax, we use a simple bowl and ball analogy pick two numbers, keep the bigger, and compare with the third.

This visual logic helps freshers build coding confidence.
Code used:
a = 10
b = 5
c = 25

Follow Error Makes Clever for creative coding tips!

#codingtutorial #interviewtips #interviewquestions #code #errormakesclever
Рекомендации по теме
Комментарии
Автор

x=int(input("Enter x value:"))
y=int(input("Enter y value:"))
z=int(input("Enter z value:"))
if(x>y) and (x>z):
print(x, " is the biggest one of all")
elif(y>z):
print(y, " is the biggest one of all")
else:
print(z, " is the biggest one of all")

JebinUnis
Автор

A=1
B=2
C=3
D=max(A, B, C)
e=min(A, B, C)
print("max number", D)
print("min number", e)

Simple bro

MohamedIbrahim-skwr
Автор

Flowchart la while loop, for loop, arrays ellam explain pannunga Anna please

Leezafro
Автор

max(max(a, b), c) => max(num1, num2) return num1>=num2?num1:num2

MRGamesStreamer
Автор

Python programmer me : just use max function bro😂

Spideyofficial-zb
Автор

just sort it and print the last value of the array

logeshwaranvivek
Автор

Bro sound engineering ref channel sollunga bro

JackJ-cx
Автор

Anna nan ca athurukan Anna Cs kum commmerse ca ku enna different solllunga pls Anna pls pls 😢

KANISHKAR-zy
Автор

Anna 12th intha year na 12 mudichuruken net bsc data science edukalam nu iruken athuku further ah extra va vera course padikanum plss share your opinion

immanuimmanu
Автор

Bro one question, can’t I keep adding the variables and subtract each variables from the total of all variables and tell the system to identify the number for which the remainder is the least and declare it as the number as the largest?? Will, this be computationally costly??

gauthama
Автор

Bro which programming language is trend and best bro please tell ..

panni_gaming-xs
Автор

Okay bro what if the they give n number of values as input, like ipo n=5 na for (i in range 1 to 5) nu ulla inputs vaangitu adhula big number a find pannanum. I thought long time and couldn't find exception of map function. Map function use pannama vera method la idha find panna mudiyuma?🤔🤔🤔

vaanga_terunjikalam
join shbcf.ru