Posts

Q3. Read two numbers N1, N2 and a character OP (+,-,*,/), then perform calculation depending upon the type of character entered by user and display result in format: N1 op N2 = result

Calculate roots of quadratic equation. Implement all three cases. (roots are equal/roots are real/roots are imaginary).

Q1 Read user’s age and prints “CHILD” if age < 18, “ADULT” if 18 £ age < 35, “SENIOR” if age ³ 35.

control structure