The document provides 5 examples of simple programs to write including: printing an integer in reverse order, converting time in seconds to hours/minutes/seconds, converting lowercase characters to uppercase, printing a decimal integer in octal form, and finding the real roots of a quadratic equation.
The document provides 5 examples of simple programs to write including: printing an integer in reverse order, converting time in seconds to hours/minutes/seconds, converting lowercase characters to uppercase, printing a decimal integer in octal form, and finding the real roots of a quadratic equation.
I have discussed similar type of programs, try these by yourself.
wap =write a program
1.wap to print 4 digits positive integer number in reverse order. 2.wap to convert time in seconds to time in hours, minutes and seconds. 3.wap to read a lowercase character and output is its uppercase character. 4.wap to accept a decimal integer and print it in octal form. 5.wap to find real roots of a quadratic equation of type + + = 0, ℎ ≠ 0.