using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Average
{
class Program
{
static void Main(string[] args)
{
string a;
string b;
string c;
Console.WriteLine("a&b&c:");
a = Console.ReadLine();
b = Console.ReadLine();
c = Console.ReadLine();
float a1 = Int32.Parse(a);
float b1 = Int32.Parse(b);
float c1 = Int32.Parse(c);
float d = (a1 + b1 + c1) / 3;
Console.WriteLine("Result:" + d.ToString());
Console.ReadLine();
}
}
}
تصویر خروجی برنامه ی میانگین(Average):
telegram2