0% found this document useful (0 votes)
19 views

New Assignment

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.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

New Assignment

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.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

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.

You might also like