i have some amature questions . please help me .
1-in this program i need Average of 3 numbers but it dose not work :
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication76
{
class Program
{
static void Main(string[] args)
{
int x;
int y;
int m;
float ave;
Console.ReadLine();
Console.ReadLine();
Console.ReadLine();
ave = x + y + m / 3;
Console.WriteLine(ave);
Console.ReadKey(true);
}
}
}
2-in this one , program must be ask me Radius of circle and then calculate Environment and Area of circle
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication76
{
class Program
{
static void Main(string[] args)
{
int r;
float area;
float pi;
Console.Writeline("enter radius circle");
environment=Conver.Toint32(Console.ReadLine(r));
area= p * r * r;
pi = 2 * p *r;
Console.Writeline(area,p);
3-this one must be aks me enter 5 numbers and then print them
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication77
{
class Program
{
static void Main(string[] args)
{
int i;
const int n = 5;
Console.ReadLine();
for (i = 0; i < n; i++) ;
Console.WriteLine(i);
Console.ReadKey(true);
}
}
}
4-and the last one must be ask me to sentence and then if they are equal must be print equal else it must be print unequal .
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication77
{
class Program
{
static void Main(string[] args)
{
int i;
const int n = 5;
Console.ReadLine();
for (i = 0; i < n; i++) ;
Console.WriteLine(i);
Console.ReadKey(true);
}
}
}
i can't complete them , please help me