ARELI HERRERA
2
Q:

await key input in c#

// C# program to illustrate the 
// Console.ReadKey Method 
using System; 
  
class GFG { 
  
    // Main Method 
    public static void Main() 
    { 
        int c = 0; 
        Console.WriteLine("The series is:"); 
  
        for (int i = 1; i < 10; i++)  
        { 
            c = c + i; 
            Console.Write(c + " "); 
        } 
  
        Console.WriteLine("\npress any key to exit the process..."); 
      
        // basic use of "Console.ReadKey()" method 
        Console.ReadKey(); 
          
    } 
} 
0

New to Communities?

Join the community