bhai agar x ki value de rakhi hai toh phir toh ye basic calculation hi ho gayi. bas ek solution variable bana jisme same x ki jo bhi value hai uske saath multiply kar, aur usse print kardo.
wHAT IS MY MISTAKE #include #include int main() { float a,b,c,r1,r2,p,q; printf("Enter three Coficient of it :"); scanf("%f%f%f",&a,&b,&c); p = b*b-4*a*b*c; q = sqrt(p); if(p=0) { printf("the roots are equal and real"); r1=-b/(2*a); printf("the roots are %f",r1); } { elseif(p>0); printf("Roots are clear and distinct"); } r1=(-b+q/(2*a); r2 =(-b-q/(2*a); printf("roots are %f and %f",r1,r2); } { else printf("roots are imaginary"); return 0; }
{Note: You have to take gender “F”|”M” that must be stored in character variable, age and City name as K|H|S|G as Karachi, Hyderabad, Sukker and GHotki that must be stored in character variable. 1) If gender is female, age is between 25-35 and from Karachi or Hyderabad, add 2000 in the salary and print the net salary. 2) If gender is male, age is between 25-40 and from Sukker or Ghotki, add 2500 in the salary and print the net salary. 3) Otherwise print the present salary no any addition. can u do this?
Ur teaching way is simple. U teach every small small details which others don't. Thanks for the great videos
aap jaisa koi nahi pure youtube mein....🎙🎙🎙
Your teaching technique is vry compatible with our understanding sir ..
thanku so much sir for teaching c programming in so simple and easy way to understand
your teaching is really good, Thank you sir
Tq u sir... Mujhe jab mam ne a program kiyatha.. Kuch bhi ny samajh aya but.. It was really helpful to me... Tq u so much sir
glt bt h teacher ki burai krna
Sir you help me a lot.... thnks guru ji
I want to print Imaginary Number, how could I do??? your videos are awesome
Sam
@@shivamrai2889 /*... add this inside the program.....*/
else if(D
@@ashfaqurrahman7334 thank you 💗 Happy new year 2021
Tq so much for your explanation sir
Thank you sir mera doubt clear hoga gaya
sir for real and equal roots, if i am using 2.0 instead of 2, the value of my roots are coming out to be zero instead of the correct answer
Please check the program again, there can be an error. Mine is working fine.
You take mistake in format specifier I think you using %d write %f surely your problem solved.
Amazing Explanation Sir
nicest video so clarity provided .......
Sir,also make a video how to find out and display the imaginary roots
Sir which app are you using....
Sir bracket lagane se precidence rule nhi lagega kya?
Sir can you tell what is the out put in the vedio
sir g mujhe yeh samajh nahi aaya ki isme operatrors ka kya precedence rule hoga
Thank u Sir very much
For d
write a c program to calculate AM,GM,HM from a group frequency distribution.
Thank you so much
Buhut acha explain kiya h 👍
Sir ek polynomial equation ko solve krne ki liye program bnaiye jb x ki valve di ho
Like as ..
3x^2+5x+9
bhai agar x ki value de rakhi hai toh phir toh ye basic calculation hi ho gayi. bas ek solution variable bana jisme same x ki jo bhi value hai uske saath multiply kar, aur usse print kardo.
sumit gaud, sir what are trick apply for program solving and how logic work in program?
Which software you are using???
thanks a lot sir ....
sir thank you
Can you tell me Sr
Newton rephson method in c
Which compiler is best for c in android
Sir..... coefficients bhi to real ho skte hai na?
Thank you so much Sir.
How can I calculate imaginary part value?
sir plz provide algo and flow of this if someone is reading this then do plzzz
can u plz tell how to calculate roots of quadratic equation in c++ using switch case
program are very nice and help fully
Warning:Incompatible implicit declaration of built-in functiin 'sqrt'
Is coming i have done
#include
Then also it comes what to do
In code blocks
#include
Thank you so much. I realized my parentheses weren't in order lol.
I wanna print imaginary number how to print n what is the mean of imaginary number plz Sir reply
very helpful vedio,thanks
Video*
Helpful
How do I print the imaginary roots in the form a+bi??
Sir 2.0 likhne k bajay kyu n sare variables ko float mein le le??
Tb jb eq^ bnega to 7.5x^2 +5.3x+8.9=0 consider hoga
Chalega aisa ??? Tumne aisa padha hai kya !!!
Tq, nice expkanation, beneficial..
Solve this using switch statement sir
sir equal roots ke liye alag se print kyu kraya???
Why u need int?
Sir imaginary roots bhi check krna hai plzzzzz... O kaise
Sir I have typed the same code which is in video but I am getting wrong answers
may b
logical error
Header file me kya likna hai .?
Sir ise flow chart me kaise draw kr sakte hai
best...just dont use 360p.
sir 3 baar if use kiya bina else ke?
apne else if kyu use nahi kiya ?
Amazing explanation sir !
But what is imaginary root?
Nice explanation ❤️❤️❤️
Bahut pasand aayaya
How can we find roots of cubic eqn
Fantastic
Very helpful..
Sir how to print and calculate imaginary roots
Tqsm...well explained.!!
great
Thank you sooo much sir✔️
TQ sir it was up to great use ❤️
How to print imaginary roots
Sir,
Video is not clearly see ,so please improve it soon.
Pro tips- play at 1.5x speed
Thanks sir g
Thanx Sir
Can anyone tell me how to calculate complex roots also in this program
Imaginary k liye BHI bata do sir
best tutorial
wHAT IS MY MISTAKE
#include
#include
int main()
{
float a,b,c,r1,r2,p,q;
printf("Enter three Coficient of it :");
scanf("%f%f%f",&a,&b,&c);
p = b*b-4*a*b*c;
q = sqrt(p);
if(p=0)
{
printf("the roots are equal and real");
r1=-b/(2*a);
printf("the roots are %f",r1);
}
{
elseif(p>0);
printf("Roots are clear and distinct");
}
r1=(-b+q/(2*a);
r2 =(-b-q/(2*a);
printf("roots are %f and %f",r1,r2);
}
{
else
printf("roots are imaginary");
return 0;
}
Dekh ke phle copy kar lo , formula hi wrong hai 8th line pr
abc sb likh diye ho tum
Else k baad { ye hoga
Statment complete ho jane ke baad } ye
Sara else correct karo
If ke b baad {
Printf......
}
Sir I am not exicuting out put
Shukriya sir ji
Mera error bata rha hai
D=b*b -4*a*c isme error bol rha hai
How would you translate this into assembly language. I what to run it on my logism cpu as a math project.
{Note: You have to take gender “F”|”M” that must be stored in character variable, age and City name as K|H|S|G as Karachi, Hyderabad, Sukker and GHotki that must be stored in character variable.
1) If gender is female, age is between 25-35 and from Karachi or Hyderabad, add 2000 in the salary and print the net salary.
2) If gender is male, age is between 25-40 and from Sukker or Ghotki, add 2500 in the salary and print the net salary.
3) Otherwise print the present salary no any addition.
can u do this?
Imaginary roots should be printed
nice video
Thanks sir..!!!
I like it
Thank you sir
Cofficient x^2 ,x and maginary root nahi samjha
thanks sir........
nyc thankuu...
Super video
Nyc sir thanku.
your voice so nice................................
Best
Bohot Hardh he
👌
c program to calculate speed and convert it from mhr to km hr.. I need this program can anyone help
you want to calculate the speed of what?? can't understand wat you want??..Please write more clearly.
context me 8383808428 call vijay sir
Imaginary number
👑
header file konse chaiye
You're making difficult to us
Thank u sir