1.
Write an algorithm and program to compute the roots of a quadratic
2
equation ax +bx+c=0 by checking all conditions:
○ No solution, if both a and b are zero.
○ There is only one root, if a=0, x=- c/b
2
○ There are no real roots, if b -4ac is negative
○ Otherwise, there are two real roots.
○
2. Write a program to determine whether a given number is odd or even.
Display the number and the message number is odd or number is even.
3. Draw a flowchart and write a program to find the sum of squares of first n
natural numbers.
4. Write a pseudocode and program to read 3 integer values and display the
output stating that they are the sides of a right angled triangle.
5. Write a program to compute the sum of all integers that are divisible by 6
but not divisible by 4 and lie between 0 and 100. The program should also
display the count of such numbers and the numbers.