What is the output of the below pseudo code?
1 Set x to 0;
2 Set n to 1;
3 while(n<=100)
4
x=x+n;
5 n=n+1;
6 end
7 write x
Answers
Answered by
3
Answer:
Additional Information
Nature of roots :-
Let us consider a quadratic equation ax² + bx + c = 0, then nature of roots of quadratic equation depends upon Discriminant (D) of the quadratic equation.
If Discriminant, D > 0, then roots of the equation are real and unequal.
If Discriminant, D = 0, then roots of the equation are real and equal.
If Discriminant, D < 0, then roots of the equation are unreal or complex or imaginary.
Where,
Discriminant, D = b² - 4ac
Similar questions