Program Kwota Stypendium

0

Witam. Mam program podający kwotę stypendium w zależności od średniej, wyskakuje błąd:
"No overload for method 'ReadLine' takes '1' arguments"

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication3
{
    class Program
    {
        static void Main(string[] args)
        {
            float x;
            Console.WriteLine("Podaj średnią ocen:");
            x = float.Parse(Console .ReadLine(x));
            if (x > 2.00 & x <= 4.00)
            {
                Console.WriteLine("Kwota stypendium 0,00z ł");
            }
            if(x > 4.00 & x <=4.80)
            {
                Console.WriteLine("Kwota stypendium 300,00z ł");
            }
            if(x > 4.80 & x <5.00)
            {
                Console.WriteLine("Kwota stypendium 300,00z ł");
            }
            else
            {
                Console.WriteLine("Z ła wartość ");  
            }
            Console.ReadKey();
        }
    }
}

1

Metoda readline() jest bez argumentowa .Skąd ci się tam wziął x

0

Dziękuję, nie pomyślałem! początki...

0

Spoko . Też miałem takie problemy ;)

1 użytkowników online, w tym zalogowanych: 0, gości: 1