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 while loop depends on the operator you use, for example, (titan >= 0) checks for if titan is higher
- //or the same, if its higher and or the same it becomes true and executes the commands in the curly brackets.
- namespace Tutorial_Project_1.Tutorial_1_Examples
- {
- class While_Loop
- {
- static void Main()
- {
- int titan = 20;
- while (titan >= 0)
- {
- Console.WriteLine("Titan = " + titan);
- titan--;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement