Java program to find Greatest of three Numbers | Learn Coding
ฝัง
- เผยแพร่เมื่อ 1 ต.ค. 2024
- Java Full Course for Beginners...!👇👇
• Java Programming
Please Like | Share | SUBSCRIBE our Channel..!
Learn Coding
🙏🙏🙏
Like our Facebook Page...!
Learn Coding
Don't forget to tag our Channel...!
#MaximumNumberProgram
#LearnCoding
#findgreatestnumber
#GreatestNumberAmongThreeNumbers
#ask4help
#LargestNumberProgram
#JavaProgramming
#Coding
By using and operator it can be more easier
YOU CAN ALSO USE THIS
int a,b,c,Max;
System.out.println("Enter three number: ");
Scanner obj=new Scanner(System.in);
a=obj.nextInt();
b=obj.nextInt();
c=obj.nextInt();
Max=(a>b) ? ((a>c) ? a : c) : ((b>c) ? b : c);
System.out.println("Max number is = "+Max);
use && , || operators to make your life simple
Is this correct?
if(num1>num2 && num1>num3) {
System.out.println(num1);
}else if(num2>num1 && num2>num3) {
System.out.println(num2);
}else {
System.out.println(num3);
}
It's absolutely correct :)
super bro
Loop ka use karke bataye
this is exactly what i was searching for i was doing an assignment and couldn't solve this thx for the great explanation btw :)
For more details visit:
th-cam.com/video/cr_bKjHTpkc/w-d-xo.html
10>20 false btaye ......20>30 kaise true hua ....dono to same operator lga hua h
Thanks for it
Thank you sir i have really got yhe solution for my prblm
How to start 1st typing with colors please tell me
Vs code use kar
are ye else me koi bracket nahi lagega kya bhai er😂ror bata raha hai bro
Agar 20,20,10 number ho ya firr 20,20,20 ho tab
Sir your explanation is soo crystal clear 😃thank you so much sir 🙏
Sir Android development pr video banaye
Thanks sir
Sir Data Structure ka important. Question bataiye please exam hone wala hai
Searching
Sorting
Linked list
Tree and Graph
Stack and Queue
These topics of data Structure is V.V.I for Exam.
Click on this link to learn data Structure
👇👇👇
th-cam.com/play/PLqleLpAMfxGAf5rrWdm92WMK3-gsrxgz5.html
Sir please make playlist on advance java ur teaching is too good plzz sir
For more details visit:
th-cam.com/video/cr_bKjHTpkc/w-d-xo.html
Good job
Exactly what I was searching for .. extremely helpful
Thanks my friend please Share 🙏