Hi aiswarya Thanks for your interest towards our channel and share my sessions with your friends and keep following our channel and don't forget to subscribe to our channel.
hi vishakha thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
Hi brunda Thanks for your interest towards our channel and share my sessions with your friends and keep following our channel and don't forget to subscribe to our channel.
Hii sir I don't understand the flag=0 as i am watching your video since starting and is not discussed in any video so its a humble request to make video on this and i don't understand the output 1%1=0 so value flag=0 so please clarify this dout
Sir there is mistake ...we can't initialize the flag value in int main ....the program will not executed....we have to initialize like that Int i,j,Flag; for(i=1;i
In the given series 1,2,1,3,2,5,3,7,5,11,8,13.......odd terms form fibinocci series and Even terms form prime numbers.please tell me the program to generate nth term
Please help me explain my code. I am confused at the for loop j because when I put j = 0, 1, 3, 5, I + 1. all these seems to work but I don't understand why it works. #include #include #define MAX 100 int main() { int isPrime[MAX]; int i, j, num; printf("Enter a number [more than 2]: "); scanf("%d", &num); for(i = 0; i < MAX; i++) { isPrime[i] = 1; } for(i = 2; i
hi anurag and thanks for your interest towards our channel and i am uploading videos in an order till now i have covered upto one dimensional arrays and definitely i will upload the remaining soon.
hi ANURAG i would like to have a FEEDBACK ( in the form of video not more than 15 sec) from you towards our channel and my sessions.so that i will collect feedbacks from all and will upload in youtube, Send your valuable FEEDBACK to my WhatsApp number : +91 9885466061 (91 is the country code) waiting for your valuable feedback. th-cam.com/users/sundeepsaradhi SO MAKE A VIDEO WITH FEEDBACK ON OUR CHANNEL AND SEND AS SOON AS POSSIBLE
Hello Sir.Why Flag need to declare again under for loops.IF don't declare in that place the program doesn't work.I want to know Why flag was declare two times.Please.
Because in the inner loop, once the condition fails, it will go move outside and re-run the outer loop. So, if you did not declare your flag = 0, in the outer loop, then the flag will always contain 1 or 2 because of the inner loop. Just think of it this way: if the inner loop fails, the flag value will return to 0 to start again.
hi its just like a variable and the name i have given as flag. thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
hi teja i think there is no use of else part in this program because here our problem statement is only to print all the primes in given range. i forget and written the else part in the program. Hope your doubt has been clarified.
Been working on this and this vid helped me get it. You always come through. Thanks!
Thank you for following my sessions.
Second loop should be j
Why loop j ALWAYS start for 1 each iteration
Explain to me please !help me!
I am confused
All credits go to you sir. Now I undetstood how the logic works. Thank you very much sir
That's not j
That's already shown in video man
yes sir initially mentioned is exactly correct. j
@@gkguru6830 we need include 'i' too in the body function, that's why we need to include only one closing bracket after count++, am I right?
Great! Tones of detail!! Super!!
Your teaching is so good sir. I thank you so much for teaching so well. Please make many more videos sir, that helps a lot.
Thank You Sir for kindling the interest in me towards programming !!!
Hi aiswarya
Thanks for your interest towards our channel and share my sessions with your friends and keep following our channel and don't forget to subscribe to our channel.
thank you so much sir,we want more examples expecting from you sir....thanks for your dedication ..😍
super sweat and dedicated way of teaching !
Thank you sir
Continue sir... Your explanation is very good 👌👌👌👌
Very helpful. Explained to the deep of the program...
Thankyou so much sir, you are the best.I like the way you are teaching it"s help us a lot.
Can you please make the video on github.....please sir
Thank you So much , it is helpful for me.
Thanku so much . Such a lucid explanation😊👍
hi vishakha
thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
Thank u so much sir....ur way of explanation is crystal clear...keep doing videos like this
Very helpful sirji please share more videos to us thanks
Superr sir simple solution it helps me a lot
Thank you sir,and you have to explain more programs
hi sivaleela
thanks for watching my sessions and sure i will do more videos on programs.
tq u so much . Such a lucid explanation
In j loop j
Thanks alot sir......hope further videos in future would be usefull
..
superb explanation, thanks sir
int flag = 0; should be declared inside first for loop to get the output as shown in above example!
Thank you sir for this video
Plzz make such more
यदि आपको हिंदी में सीखना हो, तो मेरे चैनल पर ज़रूर देखे।
Although this problem can be solved in lesser space complexity, I must remark very well explained sir!!
Hey!!!
Can uh please explain it by using function 🙄🙄
Nice explanation sir
Hi brunda
Thanks for your interest towards our channel and share my sessions with your friends and keep following our channel and don't forget to subscribe to our channel.
Awesome!!!
Hii sir
I don't understand the flag=0 as i am watching your video since starting and is not discussed in any video so its a humble request to make video on this and i don't understand the output 1%1=0 so value flag=0 so please clarify this dout
Flag is similar to variable
Good wayy of teaching
Sir you are explaining is very good but what you are explianed program just compile it sir once
Why we are taking flag=0 in inner for loop.
nice explanations
Hi
Thank you for your support towards our channel share our channel with your friends and keep following our channel.
Sir there is mistake ...we can't initialize the flag value in int main ....the program will not executed....we have to initialize like that
Int i,j,Flag;
for(i=1;i
So sir please make video with execution of program in computer
Thanks mahn
Sir jayganath,,, sir you have to put in inner loop j
Sir.. Flag is a just variable..I'm right.. We can right any name to replace flag
Yes you can give any name
Sir u forget about the prime number intervals
In the given series 1,2,1,3,2,5,3,7,5,11,8,13.......odd terms form fibinocci series and Even terms form prime numbers.please tell me the program to generate nth term
🙏🙏🙏🙏🙏❤️❤️❤️❤️❤️
Thank you sir
What is flag and what is counter?
J‹=i...is the correct
Thank you very much sir
sir program is comig error at for statement
Super Sir😎😎😎
Sir, What is meant by flag? Why do we use flag suddenly? could you please explain?
hi
flag is also a variable nothing new.
Thnq sir 🔥🔥
Please help me explain my code. I am confused at the for loop j because when I put j = 0, 1, 3, 5, I + 1. all these seems to work but I don't understand why it works.
#include
#include
#define MAX 100
int main()
{
int isPrime[MAX];
int i, j, num;
printf("Enter a number [more than 2]: ");
scanf("%d", &num);
for(i = 0; i < MAX; i++)
{
isPrime[i] = 1;
}
for(i = 2; i
8.45 j>=i is correct...Not j
You are wrong man it is
j
sir plz make video on function
and plz hurry up sir
hi anurag
definitely and before i have to complete strings concept. Immediately after Strings i will upload functions.
Tnq sir your teaching method is very good bu you should upload more video on main of c like as function,array,pointers
hi anurag and thanks for your interest towards our channel and i am uploading videos in an order till now i have covered upto one dimensional arrays and definitely i will upload the remaining soon.
This is the link of Functionsth-cam.com/video/TEHA_IwNk34/w-d-xo.html
hi ANURAG
i would like to have a FEEDBACK ( in the form of video not more than 15 sec) from you towards our channel and my sessions.so that i will collect feedbacks from all and will upload in youtube,
Send your valuable FEEDBACK to my WhatsApp number : +91 9885466061 (91 is the country code)
waiting for your valuable feedback.
th-cam.com/users/sundeepsaradhi
SO MAKE A VIDEO WITH FEEDBACK ON OUR CHANNEL AND SEND AS SOON AS POSSIBLE
Hello Sir.Why Flag need to declare again under for loops.IF don't declare in that place the program doesn't work.I want to know
Why flag was declare two times.Please.
Because in the inner loop, once the condition fails, it will go move outside and re-run the outer loop. So, if you did not declare your flag = 0, in the outer loop, then the flag will always contain 1 or 2 because of the inner loop. Just think of it this way: if the inner loop fails, the flag value will return to 0 to start again.
Cab we use count instead of flag?
8:10 is 2
hi srinivas
thanks for observation and i just written the condition wrong at that time j
Sundeep Saradhi Kanthety here j>=i is correct...
You don't need to run j upto n.. You need to run j upto sqrt(i).
How add sum of the prime Numbers?can u tell me sir.
You won't get the answer if you declare flag =0 outside for loop as you did in your case
Thanks brother
Sir, its not executing
When i entering the number in result window
It is getting back to the program
There might be an error in the loop function
For what we use flag
What is flag sir
How to find largest 9 digit prime number in c program
why we take flag== 2 only
write a program in c language user input the value (Hello) or output is (H*l*o).
Didn't understand clear ga cheppandhi
Sorry to ask 1 also prime no
1 is not a prime number because it has only one factor prime number must have two factors
What is flag
sir what if we want know given number is a prime number ??
Sir what is the use of flag=o
hi
its just like a variable and the name i have given as flag.
thanks for your interest towards our channel and share my sessions with
your friends and subscribe to our channel.Keep following our channel.
Same as count bro it aslo just counts the values
Flag is used to differentiate prime and non prime number
How to count prime numbers in 2d array?
sir plzzzz make a video on a program to check whether it is a palindrome or not using functions plzzzz sir
hi satya
definitely i will try to upload the program soon with in two or three days.
What is flag variable sir?
Im still not getting purpose of count
How to count number of prime numbers? Sir
my program didnt run all numbers are coming not prime
Sir plz c assignment papers solved kar dijiye na....
hi piyali roy
post your doubts in the comment section so that i will clarify your doubts.
Sir can we use count instead of flag?
Yes, you can use
I can't understand this can u explain the program in telugu
I think j%i is correct instead of j%n
Sir please give the program to generate nth term of a prime number
ouput not getting sir
For 1 flag is one and not work
Thanks sir .
You forgot else part
hi teja
i think there is no use of else part in this program because here our problem statement is only to print all the primes in given range. i forget and written the else part in the program.
Hope your doubt has been clarified.
program is for series printing , so "simple- if" is enough. If the program is for checking either A or B. You are correct. It require else part too.
Sir this vedio is not cler
Sir your program is little worng please chek
Sir sorry I like ur all videos
Bt this one is bad explanation
Thank you so much sir