Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------
- For this question I set the holiday to 5 days (1working week Monday to Friday)
- Set the initial count to 5
- While (not (count is 0))
- Eat breakfast
- If (it is sunny)
- Go to the beach
- Else
- Go to the swimming pool
- Reduce count by 1
- Go home
- -------------------------------
- <html>
- <body>
- <script type="text/javascript">
- var count;
- var r=Math.random();
- count ="5";
- while (count>0)
- {
- document.write("today i woke up on day and had brekkie");
- document.write("<br />");
- document.write("the count is" + count);
- document.write("<br />");
- count--
- }
- document.write("go home");
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement