good way of explaining sirg.....Thank you very much.....agar isi ko macros use karke karna ho to kaise kare.....plz help...I am beginner in c & just subscribed you as your video is best among others I have found....
hello sir, I am new to learn language & i am trying to learn from "let us c" book. but the theory given in book isn't sufficient for exercise problem. so, what can I do in this situation?
Sir when we type 123456 then it shows the sum is in negative .... But when i adding it to 1 to 5 ,it gives correct result.... Why it so happen, plz solve my question
Sir Maine is program ko for loop se kra...... but sir input 1 dalne pr sum 14 dikha raha h...Kya galat h...sir...dekhna Int x,sum=0,s,i; Scanf("%d",&x); For(I=0;x!=0;I++) { S=s%10; Sum=sum+s; X=x/10; } Printf("%d",sum);
agar zaada badi vallue enter karwani ha to ( long int ) deta type ko use kro zaha par aap %d likhte ho wha par %li (LONG INT) likhna ok..................
Try this code: #include int main() { float a,s=0,r; printf("Eneter the digit of your choice:"); scanf("%f",&a); while(a!=0) { r=a%10; s=s+r; a=a/10; } printf("The sum of the digits is = %f",s); return 0; }
agar zaada badi vallue enter karwani ha to ( long int ) deta type ko use kro zaha par aap %d likhte ho wha par %li (LONG INT) likhna ok.........kyuki ek integer variable :> 65535 tak he vallue leta ha
If I tell you the solution, you will not learn "Thinking like a programmer" and eventually, struggle later. Think how can you break this number as a digit. Try it.
/* your Solution plz make a video on c programming where input will b like this input=x4y7 and output will be like output=xxxxyyyyyyy */ void main(){ int x,y; int a; clrscr(); printf("Enter Two Numbers X And Y = "); scanf("%d%d",&x,&y); for(a=0;a
Gurudev aap Mahaan Ho👏👏🙌🙌
Really i am very thankful to you sir.. jst bcoz of yur videos.. i am able to get the logic correctly and implement it in the programs
Thank You sir, for making this programming videos ,this is very useful for me. I am getting understand each and every concept clearly.
Hats of to you sir urs teaching style is totally ddifferent
Your teaching style is magnificent 😋🤣
Loved it sir
New concept
Think Output And write program 😋
Thank you verrrrrrry much sir, searched a lot for this program , finally found an excellent one
Sir I m not usually commented but sir you explained it in a very effective manner,keep doing sir!!👍
Super se upar sir ji....
Sir aapka samzhna lajawab hai
Thanks sir thanks 🙏
Khupach chan sirrr....aapaki vajese mera spa jarur pass hoga...awesome sirrr
Wow. What a explanation. Thank you so much sir.
You are the god for me sir .........☺️☺️☺️
sir main apke videos dekhne se pehle he like kar deta hoon becase i fully confident that this topic is clear
Awesome video Sir
Really Best ..thank you Sir.
Awesome explanation Sir........ Thank you Sir....
Sir
Mai pehle khud logic bana ke phir aapse match karke program banata hu thanks guru g
I did it by myself sir and I used for loop and logic was almost same and my dry run and compiled ans both are perfect
Mam ap for look use karka kasa Kia batayanga
Wow 🙌
nice
thanku so so so so so so much for this vedio...after many days my problem was solved
Amazing ❤❤
you are a good trainer sir! nice!..bahut aachee se samjhate hai
sir ji aap kaa video is a super hai video
Outstanding sir 👍
bahot achha batate hai sir thank you very much
you are really awesome
Awesome videos...
Your channel is underrated....
Even though you gave very good c tutorial
mazaa aa giya sir g
You are awesome sir
Great👍
Basics are getting stronger...
thanks a lot, it was very helpful.
Uh re best teacher ... Kassh humre clg mei hotee
Great teaching sir
Super
Hi
Pure knowledge
ase kirpa banaye rkhe gurudev
Thank u very much sir u are great
U r great sir......😍
no one can compeat u. u r great
good way of explaining sirg.....Thank you very much.....agar isi ko macros use karke karna ho to kaise kare.....plz help...I am beginner in c & just subscribed you as your video is best among others I have found....
Awesome 🤗🤗🤗🤗thanku sir
Thank u sir.......
hello sir, I am new to learn language & i am trying to learn from "let us c" book. but the theory given in book isn't sufficient for exercise problem. so, what can I do in this situation?
brother i wants to talk to you
i'm also learning by let us c book and i'm stuck
Go to let us c solution book
Sir u r simply amazing!!!
Sir in this program (x=any variable) suppose is necessary b/c if I didn't suppose my program is not process
Ek like to banta hai....😍😍😍
Thanks sir ❤️🙏
i make this program today evrything was right but the when i enter the digits & press enter the sum didnt show???? help me out
You are great Sir ji.
👍👍👍👍👍
Thanks sir ji
👍👍
Sir its only for unary digits ...how to add binary and unary digits together
Sir how to calculate product of digits of a number with for loop.....its not working but woeking with while loop
Sir output me next line m kaise agya sum jabki humne to
use hi ni kia khi pe bhi?
Sir what is the statement written in the 5th line ....%d
Thank you
Without using loop bhi solve kr sakte h.. Kya
adding one to each digit of a number in c programming??
mind blowing!
Sir while me r agr likhetab BHI Shi jud rha h
sirji jb mene 10 digit ka number enter kiya to usme nine digit ka answer aaya but mynus(-) mai aaya sirji please tell me how to solve it
thank you sir
Sir when we type 123456 then it shows the sum is in negative .... But when i adding it to 1 to 5 ,it gives correct result.... Why it so happen, plz solve my question
try once by online compiler
my compiler is showing correct answer
great video sir! My question is how to print something(it may be a word or a sentence) without using any semicolon?????????
+Saurabh Shukla sir please give me the link
No it is not possible to print anything without semicolon
In q basic
Nice sir
ThankYou Sir
sir for 10 digits it is showing right ANSWER but for more than 10 digits it is giving incorrect answer
use long int instead of int and %ld instead of %d
Sir Maine is program ko for loop se kra...... but sir input 1 dalne pr sum 14 dikha raha h...Kya galat h...sir...dekhna
Int x,sum=0,s,i;
Scanf("%d",&x);
For(I=0;x!=0;I++)
{
S=s%10;
Sum=sum+s;
X=x/10;
}
Printf("%d",sum);
Sir, agar hum 111111111111111 (15times 1) lete hai to ans 35 ata hai how
Ye programming 4 digit number k liye v appropriate hoga? Plz reply
This is a general program applicable for a no of any digits.
how to find that sum of squares of digit is equal to given number
sir make a programme to sum untill a single digit appear for ex=1245=1+2+4+5=12=1+2=3 so ans is 3
sir when i take more than 7 digits......the otput comes wrong....plzz elaborate it
...
The limitation of int type declaration is upto 5 numbers. So, if you would try to enter more, wrong output would be printed.
GIGO !!!!
Peace !!!
because the limitation of int type is 5
ecxellent
Thankkyou :-)
Sir for loop ke saath bhi btabdo plzzz
Sir when we enter zero then also answer is zero... Answer should be one
Sir 203 ka sum kese Aata Japki x! =0 he to?
Sir kya app mujhe baata sakte hai,ki agr ham ek 4 ya 5 digit number le,to ham uska sirf 1st or last digit ka sum kase kare🙏🙏🙏🙏🙏
i also want its solution
Thanks so much
Thank... U sir❤️
Is there any other way to do this?
No
Yes
accept "only" three digit number from user ??? plzz sir explain who to do this ??????
no greater than three
if the given number is 100000000000000000000000000000 then how can get the sum of digits?
sir i need to know one answer immediately plzz
for(i=1;i
for(i=1;i
@@softgilehri nice bro
Dear sir....this programme is not also working for more than 4 digits...plz help me out
kyu ki bahi ek int zaada badi vallue nahi leta ha ek integer varietal :> 65535 ke zitni vallue he lega
agar zaada badi vallue enter karwani ha to ( long int ) deta type ko use kro zaha par aap %d likhte ho wha par %li (LONG INT) likhna ok..................
Try this code:
#include
int main()
{
float a,s=0,r;
printf("Eneter the digit of your choice:");
scanf("%f",&a);
while(a!=0)
{
r=a%10;
s=s+r;
a=a/10;
}
printf("The sum of the digits is = %f",s);
return 0;
}
Sir if entered more than 5 or 6 number the sum is wrong... Plz solve this
The limitation of int type declaration is upto 5 numbers. So, if you would try to enter more, wrong output would be printed.
GIGO !!!!
Peace !!!
agar zaada badi vallue enter karwani ha to ( long int ) deta type ko use kro zaha par aap %d likhte ho wha par %li (LONG INT) likhna ok.........kyuki ek integer variable :> 65535 tak he vallue leta ha
Call by pointer by adding two numbers
thank u......🙏🙏🙏🙏
Sir can u please upload program to print "N" line of file
please sir
Placement huaa
Sir, how to print sum of digits but according that format.
Enter a number : 1456
Output : [1+4+5+6] = 16
If I tell you the solution, you will not learn "Thinking like a programmer" and eventually, struggle later.
Think how can you break this number as a digit. Try it.
Thank u sir for reply. Yes sir u right I totally admit it. Now., i remember it throughout my programming.
I Can n i will make it.
It's done.
@@abhikaushik3052 Can you show me coding of this program.
Enter a number : 1456
Output : [1+4+5+6] = 16
@@ritavyas644 sorry but it's a long time ago.🙂
For now on your own.
Sir can I attend ur physical clasd
Write a program to take inputany four numbers and print the sum
🙏🙏🙏🙏🙏🏾🙏🏽
5 digits add nhi ho pa rhe he
plz make a video on c programming where input will b like this
input=x4y7
and output will be like
output=xxxxyyyyyyy
/*
your Solution
plz make a video on c programming where input will b like this
input=x4y7
and output will be like
output=xxxxyyyyyyy
*/
void main(){
int x,y;
int a;
clrscr();
printf("Enter Two Numbers X And Y = ");
scanf("%d%d",&x,&y);
for(a=0;a
Make a video smaller than this it will give speed up
There may be an error if u have single digit
Sir for loop se bata doo