Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# loop

// C# program to illustrate while loop
using System;
  
class whileLoopDemo
{
    public static void Main()
    {
        int x = 1;
   
        // Exit when x becomes greater than 4
        while (x <= 4)
        {
            Console.WriteLine("GeeksforGeeks");
   
            // Increment the value of x for
            // next iteration
            x++;
        }
    }
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #loop
ADD COMMENT
Topic
Name
8+7 =