Finally I got clear difference between do while and while loops. Thank you for your support to the entire world
@Anand-im4 ай бұрын
appo poi umbu da punda
@mikelk124 Жыл бұрын
I had 2 do while loops in the same function and kept getting and exception thrown by the second loop. I was confused why the do in the second loop was executing when the logic in the second while was not met. When you explained do while runs once then checks logic, it was a revelation moment. Thank you for saving me from nullpointerexception hell!
@mvs26204 жыл бұрын
Sirr...you are just amazing!!!!... U just cleared my every doubt...
@jlopez8220 Жыл бұрын
Great explanations. Straight to the point thank you
@Kim-gf9rr8 ай бұрын
Ay man! I really appriciate your teaching videos. I just want to let u know that keep fighting and keep living. Dont give up! I hope God bless you.
@bsaikumarreddy14134 жыл бұрын
thank you very much... please upload videos fast.. when neso is going to start ds and algorithms
@perigogaming786326 күн бұрын
i just love this man
@Bishwasification5 ай бұрын
Really worth it!!. I will give your reference in my school assignments too 💜💜
@techtech9062 Жыл бұрын
wow best and most clear explanation
@kinghowardmaneclang44402 жыл бұрын
Would you be able to do an example of do-while loop but instead of integer to terminate the program we use a string to stop the program? e.g. while(i == "stop")
@Grace-oh3rg3 жыл бұрын
wow awesome I really understand everything ! I have an exam on Friday so I will certainly be able to understand the question and do the task on compiler
@brycereece66963 жыл бұрын
i guess Im randomly asking but does someone know of a way to log back into an instagram account? I was stupid lost my account password. I appreciate any assistance you can give me
@duncanbeckham34533 жыл бұрын
@Bryce Reece instablaster =)
@brycereece66963 жыл бұрын
@Duncan Beckham I really appreciate your reply. I got to the site thru google and I'm trying it out atm. I see it takes a while so I will get back to you later with my results.
@brycereece66963 жыл бұрын
@Duncan Beckham It did the trick and I now got access to my account again. Im so happy! Thanks so much, you saved my ass!
@duncanbeckham34533 жыл бұрын
@Bryce Reece happy to help =)
@gautamsunal23911 ай бұрын
i luv ur videos so much!!! the exercises are so useful and ur teaching is to the point thank you sir!
@ௐ_Sri_Murugar_Saranam Жыл бұрын
Excellent ...Thanks for you videos..
@akashmapari11273 жыл бұрын
Thank you so much sir keep it up please upload videos the descrite mathematics full course
@ljaykhan5209 ай бұрын
Great tutorial ever👍
@user-tt2th6hp8r3 жыл бұрын
thank you so much bro, it was amazing, i appraciate you
@ashleyduffy20883 жыл бұрын
This was helpful in learning loops but everywhere I go, people use INT. most of my assignments want Strings.
@spencermasauko84425 ай бұрын
You got a new subscriber, thank you
@ArthurAraujo-oo2ll2 жыл бұрын
A nice explanation! ty so much
@mbelalhossain34702 жыл бұрын
excellent explanation.... thanks.
@Bibingka321 Жыл бұрын
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); System.out.print("please enter a value between 1 and 10: "); long i = s.nextInt(); do { System.out.print(i + " is wrong please try again: "); i = s.nextInt(); } while (i > 10 || i < 1); System.out.println(i + " is correct"); } } here's mine, a bit different but works the same ^^.
@India_11111 Жыл бұрын
sir i am a lot of learn from you .
@jennincekara17802 жыл бұрын
That was amazing thank you
@Ryan-le2im4 жыл бұрын
Awesome vid!
@thanhngoc238911 ай бұрын
Thanksssssss
@ananyapanda62382 жыл бұрын
Great
@mraadi62584 жыл бұрын
WHAT IS THE SYNTAX?
@ayushimukherjee72272 жыл бұрын
package ayushi; import java.util.Scanner; public class Main { public static void main(String[] arg) { Scanner intput = new Scanner(System.in); System.out.println("enter your number:"); int a =intput.nextInt(); do{ System.out.println(a + "is in not between 1 and 10"); a =intput.nextInt(); }while (1>a || a>10) ; System.out.println(a + "is in between 1 and 10"); } }
@mihaeljon173710 ай бұрын
what ide do you use?
@wisdomawak5926 ай бұрын
Intellij idea
@jayanth50323 жыл бұрын
Sir what if we enter our first number in between 1 and 10 Our program will ask us again to enter a number So we can use if else statements to solve this one In if block write condition as usual In else write do while It gives us effective output
@a.human.3 жыл бұрын
I just wrote the same program as the tutor in the vid, and entered a number between 1 and 10 in the first go. It didn't ask us "again" to enter a number. Better not to use if / else in this program, as who know in which go will the user enter the right number
@jayanth50323 жыл бұрын
@@a.human. Using if and else blocks increases the efficiency of program and helps to solve many test cases
@d3monlord_0193 жыл бұрын
@@jayanth5032 i believe we can it is more efficient to use it in while loop
@Abhisek_032 жыл бұрын
hey, i know it's a pretty late reply, but still I wanna say this: if we enter 1st number between 1 and 10, it will not ask for input again cause if the first input is within the range then it will not go into the while loop, it will straight come out of the loop and will print
@jeyamuthu-eo6by2 жыл бұрын
supe explaination
@markov77769 ай бұрын
good video , oRayt?
@OpinionOfX2 жыл бұрын
👍👍
@shahidaibrahim29173 жыл бұрын
import java.util.Scanner; public class a{ public static void main(String[]args){ Scanner n=new Scanner(System.in); int input; do { System.out.print("Enter number between 1 and 10 :"); input=n.nextInt(); if(input>1&&input1&&input
@Jeremy-m8r10 ай бұрын
Okau HABIBI
@mohamadwaked72683 ай бұрын
I cant see the difference its the same
@TrismegistusH3 ай бұрын
basically the code runs at least once with do while loop. even if condition is false in a regular while loop if the condition is false the code never runs