Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@Page Language="C#" %>
- <script runat="server">
- void Page_Load(Object Sender, EventArgs e)
- {
- int x = 5;
- switch (x)
- {
- case 0:
- Response.Write("The number is Zero");
- break;
- case 1:
- Response.Write("The number is one");
- break;
- case 2:
- Response.Write("The number is two");
- break;
- case 3:
- Response.Write("The number is three");
- break;
- case 4:
- Response.Write("The number is four");
- break;
- case 5:
- Response.Write("The number is five");
- break;
- case 6:
- Response.Write("The number is six");
- break;
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement