|
| Total Answers and Comments: 9 |
Last Update: July 08, 2009 Asked by: saginandkishore |
|
| | |
|
Submitted by: sriatit Actually there is no sytactical error in this code. It just that the if condition always evaluates to false 'coz the query returns the day of the week with trailing spaces(except for Wednesday) and thus will never be equal to 'Tuesday'. So, the output will be :
On Tuesday : Today is Tuesday On other days : Today is Wednesday
The output 'Aloha!!! Today Is Tuesday' is never displayed.
Above answer was rated as good by the following members: usha_martin | Go To Top
|