-->

input and output programs

continued.......

P19)write a program to get value of  f(x)=x2+2x+3.Here, x is a variable.
                                                                                                                  solution
P20)Write a program to get total and percentage of a student whose marks in different subjects are given below.
                                                                                                       
subjects marks
english45
maths65
physics45
chemistry45
                                                                                                                   solution

P21)Write a program to get value of quadratic equation ax2+bx+c.Here, symbols have as usual meaning. (use simple method)                                                              
                                                                                                                   solution

P22)Write a program to convert number of days into year,months and days.
                                                                                                                    solution

P23)Write a program to convert number of seconds into hour,minutes and seconds.
                                                                                                                    solution

P24)write a program to know ascii value of entered character.
                                                                                                                    solution