Can anyone explain why in program at 7:52 , in second for loop the value of i start with i=2 rather than 0. Why cant we start it with zero? Someone please explain the concept.
thanks bro I was troubled from last half an hour as prime nos were not getting printed coz inside else if i was using i==n I don't know how her code run😑
I am a student trying to learn C++, and those sincerely trying to learn can relate how many difficulties and doubt's we are facing, I think they should come up with doubt clearing sessions atleast once a week.
Best way to learn any language would be actually programming on it and refer official doc of the lang if you have any issue regarding syntax of something. Also refer stackoverflow for any complicated error. Try to dive deep, underneath how it works internally, and why not it worked. Try to understand how it's compiler is working《just have a high overview》 . By only watching video you will run at the risk of forgetting it quickly.
@@khurshidjahan9102 Even though docs are the best place to learn , they are a bit hard to understand as a beginner , so for beginners , a good video is the best place to learn . And after you get a bit familier wiht the language , you can do mini projects in it (doing mini projects involves a lot of doc searching) . And at that point , they will know what they are dealing with .
Lol I am 12th pass and I only watch this video and do questions on my own from internet and notes question ....... I think you should watch first and try out yourself without watching any code. (I can make " hello guys " program in 36 seconds starting from blank page) Start writing codes brother..... Hope it help u ..... God bless you 🧡❤️💛💚💙💜🤎 Edit:- I can also do till loops in loops
I am in class 10th and I want to go in CyberSecurity, so I want to also improve my coding skills that's why I am here to learn DSA. I know python and java and c a little (if you learn one language, difference between others is just syntax). I already know these languages so I am not having any problem here till now :)
Sir aap aur mam bohot accha padha rahe ho aapke example kya bolu main sir maine aapke diye hue har ek porblems ko PDF main diye hue Build and run kiya hain. Aur kuch codes ko yaha pe mile knowledge se maine aapke diye hue codes ko thodasa modify bhi kiya aur woh perfectly run bhi huye. Mujhe kcuh interest nahi tha coding main lekin ab maja aa raha hain aapke vids ke sath. So much thank you sir.
i think mine is also right in calculating prime numbers from a to b ----------->>>> #include using namespace std; int main(){ int a, b; cin>>a>>b; for(int num=a; num
Hey aman iam currently doing my undergraduation in horticulture but have a keen interest in learning coding I am really happy that I nw have reliable source to rely on and proud of you that someone is putting so much effort in doing something revolutionary many claim they give thier education for free but among thousands and millions only you stood by your words How can I begin coding will math become a problem and I dont have hands on resources like computer laptop so can you make a video how to deal in a beginner level for people like us those who are from non technical background (no math ) background please reply help all the best for your revolution
Hey, you don't have to worry about maths part for coding. Just having good grap of high school maths is sufficient. Also you need to invest into a laptop, as you cannot excel in coding without practicing.
I am genuinely trying to learn from these video lessons. and to be honest i have learnt so much more than my previous knowledge. I am just grateful for the whole team. I just have problem, many times when i run my code it takes forever to show output so i eventually have to stop it. i dont know if i am doing something wrong or there is something missing from my system. if anyone can help please tell my how to fix it.
@@harshitgupta9113 Go on any browser And search code chef this is website for coding or U can download turbo c++ on your pc Or download any compiling app for c++😊😊
Can you please attach the index before starting each module, so that it would be easier for us to know how many clips are there in this particular module? BTW great initiate bhaiya!
i have a doubt limit toh actual number see smaller than that not smaller thank equal to so second if condition lagate samay jahan pe i==num aa raha hai vo kaise hoga kiyunki I
It fails for the number such as 9 and 25 which are not prime but the code will show that it is a prime number I also thought that but later when I tested for such numbers I got my mistake
Kyu nhi hogi. N=9 N/2 would be 4.5 i.e 4 And iteration would go from 2 to 3 as condition is less than n. For 2 it will not break and for 3 it will break
Look, there are two ways the loop will terminate, either by the break statement or when it completes entirely. So if the loop has terminated through the break statement, our initialised number will be smaller than the number we are checking the condition through. Hence we will know that current number is not prime. Else if loop has terminated after completing all it's iterations counter that is i will be equal to the final number which means we didn't encounter break statement and thus it means number is prime.
Shradha didi aap achha shikati ho mujhe c++ kuch bhi smaj nahi aa rah hai Didi aap hum logo ko teaching Karo aap achha teaching karti ho Please request🙏🙏🙏🙏
@@varunchoudhary8797 sorry bro tm ko gusse me bool diya But yaar October khatam hone wala turant boards aa jayega Aman bhaya bile he revision karne ke liye uske liye bhi to time nikaalna he samjoo
everyone can mark thier first attendence
down here
Present
@@yashrawat5071 ok.next
Present
present
Present sir
Neha is becoming famous day by day 😂
Because of aman bhaiya
For sure she will cross binod one day! 🤣🤣🤣
Who is neha
@@madhurgupta3849 Neha and Rahul are the persons who are given as example the most by Aman bhaiyya😂😂
@@sarthaknitnaware yes and both are becoming famous 🤣🤣🤣
Literally Waitng For The Day When U Start Oops Concepts 🔥🔥❤️😎
Is this tough?
@@ASHISHSINGH-ds7xp no
@griZZly Gaming Not at all
@@tanishsharma5852 Hey my name is also tanish I found my duplicate lol
Can anyone explain why in program at 7:52 , in second for loop the value of i start with i=2 rather than 0. Why cant we start it with zero?
Someone please explain the concept.
This will work better for find prime or non prime number :
#include
using namespace std;
int main()
{
int n,i;
cin>>n;
for(int i=2;i
thanks bro I was troubled from last half an hour as prime nos were not getting printed coz inside else if i was using i==n I don't know how her code run😑
I am a student trying to learn C++, and those sincerely trying to learn can relate how many difficulties and doubt's we are facing, I think they should come up with doubt clearing sessions atleast once a week.
Best way to learn any language would be actually programming on it and refer official doc of the lang if you have any issue regarding syntax of something. Also refer stackoverflow for any complicated error. Try to dive deep, underneath how it works internally, and why not it worked. Try to understand how it's compiler is working《just have a high overview》 . By only watching video you will run at the risk of forgetting it quickly.
@@khurshidjahan9102 Even though docs are the best place to learn , they are a bit hard to understand as a beginner , so for beginners , a good video is the best place to learn . And after you get a bit familier wiht the language , you can do mini projects in it (doing mini projects involves a lot of doc searching) . And at that point , they will know what they are dealing with .
Yessss
Lol I am 12th pass and I only watch this video and do questions on my own from internet and notes question ....... I think you should watch first and try out yourself without watching any code. (I can make " hello guys " program in 36 seconds starting from blank page)
Start writing codes brother.....
Hope it help u ..... God bless you
🧡❤️💛💚💙💜🤎
Edit:- I can also do till loops in loops
I am in class 10th and I want to go in CyberSecurity, so I want to also improve my coding skills that's why I am here to learn DSA. I know python and java and c a little (if you learn one language, difference between others is just syntax). I already know these languages so I am not having any problem here till now :)
Sir aap aur mam bohot accha padha rahe ho aapke example kya bolu main sir maine aapke diye hue har ek porblems ko PDF main diye hue Build and run kiya hain. Aur kuch codes ko yaha pe mile knowledge se maine aapke diye hue codes ko thodasa modify bhi kiya aur woh perfectly run bhi huye. Mujhe kcuh interest nahi tha coding main lekin ab maja aa raha hain aapke vids ke sath. So much thank you sir.
We must appreciate aman bhaiya and his team's hardwork🔥❤
Ofc
I can't understand how she is using "terminal" at last to get the result. Can anyone please help me ??
@@shashibhusantripathy696 simply search for "how to give input in terminal for C++"
Legends got it~ Neha was Aman's first crush.
neha was a name which no one had in aman bhaiyas collage
then who was rashmi
I think this is just a xyz choosen name🤔
@@ashutoshgoyal3461 school ki crush hogi fir😂
ua-cam.com/video/5FsIa4Mp3ho/v-deo.html🙏🏻🙏🏻🙏🏻
Videomark:
break statement for nested loop - 7:17
Prime number different method
Int n;
cin>>n;
for( int i =2; i
Thanks ma'am and aman bahi❤️❤️❤️❤️❤️🔥🔥
i think mine is also right in calculating prime numbers from a to b ----------->>>>
#include
using namespace std;
int main(){
int a, b;
cin>>a>>b;
for(int num=a; num
DIDI soo sweetly explained👌👍🙏😍
6:53 after putting i=55,565,575,584945
It gives both prime and non prime numbers
kuch to galat kiya he tune
Ok
Dii apki voice bahut acchi hai aur explain karne ka tarika bhi bahut gajab hai..
Thank you so much bhaiya aap hai to ab kuch bhi mushkil nahi hai.
5:10 here it is just checking whether it is even or not but not checking that odd is even or not if we put 21 it will give prime where it is not...
Her voice is so sweet 🥰
In the Continue Break program for Neha"s trip, instead of if(pocketmoney==0 ) we can write if(pocketmoney
Good oberservation!! 🔥🔥🙂🙂
You don't have to iterate till n-1 for finding prime number . sqrt (n) tak hi iteration is enough !
what?
ua-cam.com/video/5FsIa4Mp3ho/v-deo.html🙏🏻🙏🏻
1 - Lectures are amazing
2 - Oh man this madam's voice hits me different
She has amazing voice
I am in love with her voice
Is Puja feeling jealous of Neha's success?😂
Khush raho...aaj tak kisi ne aisa nahi smjaya
Neha was an Imposter.
Hehe... Your profile pic is really good! 👍
@@infinitepossibilities2614 ohhhh
😂
Watch my new video bro!
Watch my new among us video
6:35
I tried if/else statement and it worked.
If/else was easy for this
exactly.... thats what i was checking in the comment section too
Everyone is asking bhaiya python , bhaiya c ,bhaiya this bhaiya that ,jo chal rha hai us par dhiyan do🤫🤫🤫🤫🤫
You guys are really revolutionising Indian education
Hey aman iam currently doing my undergraduation in horticulture but have a keen interest in learning coding
I am really happy that I nw have reliable source to rely on and proud of you that someone is putting so much effort in doing something revolutionary many claim they give thier education for free but among thousands and millions only you stood by your words
How can I begin coding will math become a problem and I dont have hands on resources like computer laptop so can you make a video how to deal in a beginner level for people like us those who are from non technical background (no math ) background please reply help all the best for your revolution
Hey, you don't have to worry about maths part for coding. Just having good grap of high school maths is sufficient. Also you need to invest into a laptop, as you cannot excel in coding without practicing.
Guys lets make his channel the most subscribed Channel of india
Didi in prime number you used i
But by that way,answer doesn't come
@@scientificvin6197 give supporting test case and try to dry run you will get the idea 👍👍
good idea bro!!.
thanks for a better suggestion.
Thank you apna college, apki waja se aaj mujhe prime or non-prime ke bich ka difference samajh aya hai... 👍❤️
Plz conduct weekly coding contests on any platform.
Good
Thank for the didi who teach us c++ 🎉❤
This Guy can run goverment TOO !!!!.
One can also do like this
for (int x = 1; x
PLS BHAIYA CONTINUE
COLLEGE REVIEWS
JazaKAllah sis and family and team Ameen.
even haters keep bell icon turned on 3 dislike ye offline coaching wale hai XD
Ohh yah
hater logo ko pakad pakad kar marunga
@@thetechnicals758 Jo bkwas kar e usi ko dho dalo😃,dubara aayga hi nhi 😂
whitehat jr employees
I think it's Wolf Gupta of white hat jr. Who does that lol 😂😂😂
Thank you maam ....🤗🤗🤗 onek vholo kore bojte peresi 🤗🤗🤗🤗 aponar theke onek kisoy sikte peresi😍🤗😍😐 you are great🤗🤗🤗
I am genuinely trying to learn from these video lessons. and to be honest i have learnt so much more than my previous knowledge. I am just grateful for the whole team. I just have problem, many times when i run my code it takes forever to show output so i eventually have to stop it. i dont know if i am doing something wrong or there is something missing from my system. if anyone can help please tell my how to fix it.
in my visual studio if i click run button it forever shows running but when i do it in terminal it works g like
g++ prime.cpp
./a.exe
After if(n%i==0)…
If we write else{ cout”prime”
We dont need if(i==n)
I'm a class 10th student.Desperately waiting for HTML course
me to But love learning C++ from sir.
Yaar html k liye w3school site refer kro, they are best.
Go to "codewithharry"
Go Thapa technical
ua-cam.com/video/5FsIa4Mp3ho/v-deo.html🙏🏻🙏🏻🙏🏻
We must appreciate aman bhaiya and his female's hardwork🔥❤
Bhaiyaa is doing great work.
Thankyou * infinity ♥️
Thanks a lot to all the mentors for your contribution....
Lol I know 7+ languages including c++ advanced still luv watching it😂
And osam explanation
Wow
really?
Which languages do u know
And how did it help u
@@meenalverma5379 just luv animated stuffs
I think that in line 10 we should have to rectify (i
Very Good initiative by you.....
Thank You bhaiya...
I was just thinking ki aaj apna college se video nhi aayi.... n here it is...
Hats off to the team❣
Amazing session. Thank you Aman Bhaiya and your entire team : )
Thanks a lot ma'am what a content ! 💛💛💛💛💛💛💛💛💛
Very useful....
Waiting for all vdos....👍
At 06:32 How will i reach i==n when we have the max i value as i < n ( which means i must stop at n-1)
learned everything that i learned in term of java in 11th in 6 videos. thank u
This content is really great and it helps me to revise the concepts in an easier way❤️
I can't understand how she is using "terminal" at last to get the result. Bro can
please help me ??
We can even use I upto n/2 at problem 05:45
Bhai i am very big fan of your efforts when I success in my life(settle at better place) I wanna meet you by ❤
U r hero.
U r best teacher.
U r our guide.
U r honest.
U r great.❤️💐💐💐🙏🙏🙏🙏
Thank you Aman sir and his team for such a awesome course😎😎😎
But why "num" wasn't declared before " if statement" in the last line ?
For example
int num;
if(i = num) {
cout
Thankyou Aman bhaiya and their entire team for giving such a wonderful playlist 💯🔥
when i was equal to n i think the loop didnt even run becuase of the condition i
Wonderful way of giving competitive content in such a easy style. I love it ❤
Concept is very relatable.
Sieve of Eratosthenes...
Probably moving towards competitive programming.
👍
Bhaiya pls keep uploading this series and after this python
In how many months this course will complete.
No info mostly in a year for the complete 140 hours
I think 3 months each month for every phase
Tell me where to write this codes in pc please
First start learning and this thinks will never end
@@harshitgupta9113 Go on any browser
And search code chef this is website for coding or
U can download turbo c++ on your pc
Or download any compiling app for c++😊😊
Shradha didi ke examples jada best he or helpful bhi he
In prime number example if i
Can you please attach the index before starting each module, so that it would be easier for us to know how many clips are there in this particular module? BTW great initiate bhaiya!
Hey I'm from apna college team . We have added the index plz check again
Nice mam you are explaining all things very ealily
Dd your voice is so sweet
Nehaa is brand ambassador
Your efforts are really appreciating. But i would like to add something in your first code.
The condition should be
if(pocketMoney
yeah you are right actually...I deducted 500 in my own code so didnt run into this problem (Always ended up with 0 exact) but Pmoney
Last question is really good
#Q why i == num for prime
Bhaiya tell them to include questions which they have been asked during their time.
If they remember 😅
Please upload 3 to 4 videos daily. Your videos are awesome .
waiting for data structure and alog ♥
i have a doubt limit toh actual number see smaller than that not smaller thank equal to so second if condition lagate samay jahan pe i==num aa raha hai vo kaise hoga kiyunki I
Hi Aman! Which Software or Website do you use for creating animation for your videos?
Unity
This course very very helpfull sir
Thanks sir.....
Idk how but my last program is not working.
Bhaiya..Freelancing par bhi videos jaldi bnao...
Can we loop upto n/2 for checking prime rather than n-1 ?. Certainly it reduces the time complexity.
It fails for the number such as 9 and 25 which are not prime but the code will show that it is a prime number
I also thought that but later when I tested for such numbers I got my mistake
And can you explain why it will give me wrong answer for 9 and 25 ? If the iteration is from 2 to n/2 ?
@@mrinalsharma18 bro i ki value 2 ke bad stop ho jayegi uske baad 3 ke liye check hi nhi hogi
Kyu nhi hogi.
N=9
N/2 would be 4.5 i.e 4
And iteration would go from 2 to 3 as condition is less than n.
For 2 it will not break and for 3 it will break
Bhaiya Web Development ka course kab tak aajayega? .... & Thank you ap hmare liye itna kr rhe ho 😍😍😍❤❤❤
I am unable to understand the logic of (I ==n) in question of find a prime number
Look, there are two ways the loop will terminate, either by the break statement or when it completes entirely.
So if the loop has terminated through the break statement, our initialised number will be smaller than the number we are checking the condition through. Hence we will know that current number is not prime.
Else if loop has terminated after completing all it's iterations counter that is i will be equal to the final number which means we didn't encounter break statement and thus it means number is prime.
@@ralsei7170 how i = n to final number when loop will run only till n-1
@@SumitShankhwarr loop runs until the final number
@@ralsei7170 smjhe ni yr PLZ help looop to I
ua-cam.com/video/5FsIa4Mp3ho/v-deo.html🙏🏻🙏🏻
aman vaia i am from bangladesh.You are the great person ever I seen. love you vaia
Bhaiya aap yeh 140 hrs ka total course roz 10-10 minute ki video main karoge? 😐
Shradha didi aap achha shikati ho mujhe c++ kuch bhi smaj nahi aa rah hai
Didi aap hum logo ko teaching Karo aap achha teaching karti ho
Please request🙏🙏🙏🙏
I need Your Help
Bhaiya jitna expect kiye the usse bhi kahi guna zada mil gaya
Thank you bhaiya !!
Bhaya class 12 ka jaldi jaldi daalooo na
Pagl h 😠,or kitna jaldi dale,roj to videos aa rhe hn 😠
@@varunchoudhary8797saale yesaaa maaar marunga haag dega
@@varunchoudhary8797 sorry bro tm ko gusse me bool diya
But yaar October khatam hone wala turant boards aa jayega
Aman bhaya bile he revision karne ke liye uske liye bhi to time nikaalna he samjoo
When you explained the difference between continue and break, there is written iternation instead of iteration
She doesn't use any spaces to make code cleaner and that thing is killing me from inside
aman bhaiya ek improvement ka point !
2:49 par continue ke neeche likhe hue statement me "iternation" ki jagah "iteration" hoga
Do you also want to see aman bhaiyaa as our PRIME MINISTER OF INDIA ?
Harshit baroliya with this course day 3
Thank you bhaiya and didi👍👍👍👍👍👍
Thanku so much mam plzz continue this series so I can placed
6:32 it can be done with while loop also.