using System;
public class Program
{
public static void Main()
int hello = 1;
int num, sum = 0;
Console.WriteLine("Type 0 to end the program");
do
Console.Write("Enter number: ");
num = Convert.ToInt32(Console.ReadLine());
sum+=num;
if(num == 0)
Console.WriteLine("The sum is " +sum);
break;
}
else if(hello == 5)
Console.WriteLine("The average is " +sum/5);
hello++;
while(hello <= 5);