Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- //The do while loop will first execute the statement then check the code. A guarenteed execute.
- namespace Tutorial_Project_1.Tutorial_1_Examples
- {
- class Do_While_Loop
- {
- static void Main()
- {
- int x = 10;
- do
- {
- Console.WriteLine("x = " + x);
- x--;
- } while (x > 0);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement