//Write a program and continuously ask the user to enter a number or "ok" to exit.
//Calculate the sum of all the previously entered numbers and display it on the console.
using System;
public class Program
{
public static void Main()
int input = 0;
int total = 0;
for(int i = 1 ; i > 0 ; i++)
Console.WriteLine("Please add an integer value less than 20");
string test = Console.ReadLine().ToLower();
if (test == "ok")
break;
}
else
input = int.Parse(test);
total = total + input;
Console.WriteLine(total);