- 24 Ocak 2010
- 224
- 0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication7
{
class Program
{
static **** Main(string[] args)
{
int a, b, c;
double ortalama;
Console.Write("1.Sınav Notunu Giriniz : ");
a = Convert.ToInt16(Console.ReadLine());
Console.Write("2.Sınav Notunu Giriniz : ");
b = Convert.ToInt16(Console.ReadLine());
Console.Write("3.Sınav Notunu Giriniz : ");
c = Convert.ToInt16(Console.ReadLine());
ortalama = (a + b + c) / 3;
if (ortalama >= 50)
{
Console.WriteLine("{0} not ortalamasıyla GEÇTİNİZ.", ortalama);
}
else {
Console.WriteLine("{0} not ortalamasıyla KALDINIZ.", ortalama);
}
Console.ReadKey();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication7
{
class Program
{
static **** Main(string[] args)
{
int a, b, c;
double ortalama;
Console.Write("1.Sınav Notunu Giriniz : ");
a = Convert.ToInt16(Console.ReadLine());
Console.Write("2.Sınav Notunu Giriniz : ");
b = Convert.ToInt16(Console.ReadLine());
Console.Write("3.Sınav Notunu Giriniz : ");
c = Convert.ToInt16(Console.ReadLine());
ortalama = (a + b + c) / 3;
if (ortalama >= 50)
{
Console.WriteLine("{0} not ortalamasıyla GEÇTİNİZ.", ortalama);
}
else {
Console.WriteLine("{0} not ortalamasıyla KALDINIZ.", ortalama);
}
Console.ReadKey();
}
}
}