Frequently Asked Java Program 09: Find Largest Of 3 Numbers | 2 Different Ways

preview_player
Показать описание
Topics :
-----------
1) Find Largest Of 3 Numbers
2) 2 Different Ways

#########################
Udemy Courses:
#########################

Manual Testing+Agile with Jira Tool
************************************

Selenium with Java+Cucumber
********************************

Selenium with Python & PyTest
********************************

Selenium with python using Robot framework
****************************************

API Testing(Postman, RestAssured & SoapUI)
*****************************************

Web & API Automation using Cypress with Javascript
********************************************

Playwright with Javascript
**************************

Jmeter-Performance Testing
************************

SDET Essencials(Full Stack QA)
*************************

Appium-Mobile Automation Testing
************************************

Java Collections
*****************

Python Programming
*********************

Cucumber BDD Framework
***************************

Protractor with Javascript
***************************

####################################
Youtube Playlists:
####################################

Manual Testing & Agile
***********************

SQL
*************************

linux & Shell Scripting
**********************

Java
**********************

Selenium With Java+Cucumber
********************************

Python
********************************

Selenium With Python,Pytest&Behave
***************************************

Selenium With Python Using Robert Framework
(Web&API Testing)
*************************************************

API Testing (Postman,SoapUi,&Rest Assured)
**********************************************

Mobile App Testing Appium
****************************

Performance Testing Jmeter
*******************************

Maven,Jenkins,Git,Github,CI/CD
*******************************

SQL,DB Testing&ETL,Bigdata
*******************************

JavaScript Based Automation Tools
********************************

Selector Hub Tools
********************

GraphQL
******************

Cypress API Testing
********************

Cypress Web Testing
**********************

Playwright with Javascipt
**************************

#LargestOf3
#MaxOfThree
#FindBiggest
#TopNumber
#NumberComparison
#TripletMax
#BiggestValue
#ThreeNumberMax
#ChooseTheLargest
#ThreeNumComparison
#MaxValueSearch
#NumberAnalysis
#ThirdValueMax
#NumericalComparison
#GreaterAmongThree
#SelectTheBiggest
#NumberRanking
#MaxIdentifier
#ThreeNumberComparison
#MaxSelection
#IdentifyTheMax
#GreatestInThree
#NumericalPriority
#OptimalChoice
#NumberHierarchy
#MaxAmongThree
#UltimateNumber
#MaxRanking
#PickTheLargest
#NumberSupremacy
#MaxEval
#ThreeNumRanking
#SupremeValue
#BestAmongThree
#MaximalNumber
#NumericalSupremacy
#ThreeNumSelect
#ParamountValue
#NumericalElite
#NumberApex
#ThreeNumMaxSearch
#DominantNumber
#PrimeNumberPick
#ThreeNumSupreme
#LeadingValue
#NumeroUno
#ThreeNumChoice
#ParamountPick
#NumberFrontRunner
#ThreeNumPriority
Рекомендации по теме
Комментарии
Автор

I am following your tutorial for testing because i am fresher and excellent explanations and very useful for real time interview than you sir

swatiwadghane
Автор

Or you can use Math.max(a, math.max(b, c))

MaxPotion
Автор

Dear sir, Please add more programs in this playlist. Like pyramid problem. These days most of the interviewers asked program from Array and String. Please add more commonly asked interview programs

navneetmittal
Автор

int temp = Math.max(num1, num2);
int max = Math.max(temp, num3);

sultanalazzeh
Автор

Your lectures are so good, I get so focused on the content that I forget to like and comment on the videos. RESPECT🙏🙏

DeepakSharma-wnub
Автор

Excellent one.Incase a=10, b=10, c=3 which is greater

rumanir
Автор

we can also solve this problem by nested if else statement . BTW nice explanation

iixxlzx
Автор

In the first method if I give my inputs as a=50, b=50, c=50 it doesn't give proper output.

manojarya
Автор

Thank you again🙏 Sir kyunki mujhe code likhna nhi ata.

Paplu
Автор

Am stuck with the "else" part of the code saying syntax error

gaidonsichone
Автор

int max=a>b?(a>c?a:c):(b>c?b:c);
System.out.println(max);
I think its also valid

Sultan_Momin_MD
Автор

hi sir am following all your tutorials excellent sir can you make a clear list the same way which u have prepared in this way on selenium also tq sir

varnaramkorepu
Автор

import java.util.Scanner;
public class Main {
public static void main(String args[])
{
Scanner obj=new Scanner(System.in);
System.out.println("Enter you number1 : ");
int a=obj.nextInt();
System.out.println("Enter you number2 : ");
int b=obj.nextInt();
System.out.println("Enter you number3 : ");
int c=obj.nextInt();
if(a>b)
System.out.println("Largest number:"+a);
else if (b>c)
System.out.println("Largest number:"+b);
else
System.out.println("Largest number:"+c);
}
}

This one also working.. is it correct..?

durgadevim
Автор

import java.util.Scanner;

public class LargestOf3Numbers {

public static void main(String args[]) {

Scanner sc = new Scanner(System.in);

System.out.println("Enter first number:");
int a = sc.nextInt();

System.out.println("Enter second number:");
int b = sc.nextInt();

System.out.println("Enter third number:");
int c = sc.nextInt();

if((a>b)&(a>c)){
System.out.println(a+" is the Largest number");
}
else if((b>a)&(b>c)){

System.out.println(b+" is the Largest number");

}
else {

System.out.println(c+" is the Largest number");

}
}
}

mrb