Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace JumpStatements
- {
- class Program
- {
- static void Main(string[] args)
- {
- bool buttonClick = true;
- int count = 0;
- do
- {
- Console.WriteLine("BLARRRRR");
- count++; //If the alrarm rings more than 3 times, it should shut off.
- if (count == 3){ //it should break out of the loop if the count variable reaches three.
- break;
- }
- } while(!buttonClick);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement