ads

Wednesday, 24 February 2016

conditions in java script

javascript

input:-

in conditional statements we use conditions like:if, if-else,while, do-while etc. in this program according to our condition we apply valid conditional statement.

output:-
in this program  we enter no. between 1 to 10 for valid case only.lets we enter here any no. like "2" then output shows like this:-
if we enter any no. greater than 10 then this is a invalid case according to our condition.To check for invalid case we enter  any value greater than 10 like"77"

No comments:

Post a Comment