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?
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....
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.........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
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; }
#include #include void main() { int count=0,n; printf("enter the value of n : "); scanf("%d",&n); while(n!=0) { n=n/10; count++; } printf("digits = %d",count); getch(); }
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
Hats of to you sir urs teaching style is totally ddifferent
Thank You sir, for making this programming videos ,this is very useful for me. I am getting understand each and every concept clearly.
Super se upar sir ji....
Your teaching style is magnificent 😋🤣
Loved it sir
New concept
Think Output And write program 😋
Sir aapka samzhna lajawab hai
Thanks sir thanks 🙏
Thank you verrrrrrry much sir, searched a lot for this program , finally found an excellent one
You are the god for me sir .........☺️☺️☺️
Sir I m not usually commented but sir you explained it in a very effective manner,keep doing sir!!👍
Khupach chan sirrr....aapaki vajese mera spa jarur pass hoga...awesome sirrr
sir main apke videos dekhne se pehle he like kar deta hoon becase i fully confident that this topic is clear
Wow. What a explanation. Thank you so much sir.
Awesome video Sir
Really Best ..thank you Sir.
Amazing ❤❤
Awesome explanation Sir........ Thank you Sir....
sir ji aap kaa video is a super hai video
bahot achha batate hai sir thank you very much
Outstanding sir 👍
Sir
Mai pehle khud logic bana ke phir aapse match karke program banata hu thanks guru g
you are really awesome
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
Wow ❤❤❤
Wow ❤❤❤
thanku so so so so so so much for this vedio...after many days my problem was solved
you are a good trainer sir! nice!..bahut aachee se samjhate hai
ase kirpa banaye rkhe gurudev
Great👍
You are awesome sir
Awesome videos...
Basics are getting stronger...
mazaa aa giya sir g
Uh re best teacher ... Kassh humre clg mei hotee
Great teaching sir
thanks a lot, it was very helpful.
Pure knowledge
Thank u very much sir u are great
Thank u sir.......
Your channel is underrated....
Even though you gave very good c tutorial
Thank you
Awesome 🤗🤗🤗🤗thanku sir
You are great Sir ji.
Thanks sir ❤️🙏
ecxellent
U r great sir......😍
👍👍👍👍👍
👍👍
Thanks sir ji
Sir u r simply amazing!!!
Ek like to banta hai....😍😍😍
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
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....
no one can compeat u. u r great
ThankYou Sir
Sir for loop ke saath bhi btabdo plzzz
Nice sir
thank you sir
Sir in this program (x=any variable) suppose is necessary b/c if I didn't suppose my program is not process
Thanks so much
Sir what is the statement written in the 5th line ....%d
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
mind blowing!
Without using loop bhi solve kr sakte h.. Kya
Thankkyou :-)
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
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 while me r agr likhetab BHI Shi jud rha h
i make this program today evrything was right but the when i enter the digits & press enter the sum didnt show???? help me out
Sir output me next line m kaise agya sum jabki humne to
use hi ni kia khi pe bhi?
Sir its only for unary digits ...how to add binary and unary digits together
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
Sir how to calculate product of digits of a number with for loop.....its not working but woeking with while loop
Thank... U sir❤️
Call by pointer by adding two numbers
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);
Ye programming 4 digit number k liye v appropriate hoga? Plz reply
This is a general program applicable for a no of any digits.
🙏🙏🙏🙏🙏🏾🙏🏽
adding one to each digit of a number in c programming??
Sir when we enter zero then also answer is zero... Answer should be one
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
Sir can I attend ur physical clasd
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, agar hum 111111111111111 (15times 1) lete hai to ans 35 ata hai how
Is there any other way to do this?
No
Yes
how to find that sum of squares of digit is equal to given number
thank u......🙏🙏🙏🙏
sir i need to know one answer immediately plzz
for(i=1;i
for(i=1;i
@@softgilehri nice bro
Sir for loop se bata doo
Sir can u please upload program to print "N" line of file
please sir
Placement huaa
Write a program to take inputany four numbers and print the sum
Sir 203 ka sum kese Aata Japki x! =0 he to?
Make a video smaller than this it will give speed up
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
if the given number is 100000000000000000000000000000 then how can get the sum of digits?
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
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.
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
accept "only" three digit number from user ??? plzz sir explain who to do this ??????
no greater than three
ooo
There may be an error if u have single digit
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;
}
#include
#include
void main()
{
int count=0,n;
printf("enter the value of n : ");
scanf("%d",&n);
while(n!=0)
{
n=n/10;
count++;
}
printf("digits = %d",count);
getch();
}