Follow along with the video below to see how to install our site as a web app on your home screen.
Not: This feature may not be available in some browsers.
C# de yapmak yerine Python ile daha kolay bir şekilde yapabilirsin.
List<int> first = new List<int>();
List<int> second = new List<int>();
List<int> third = new List<int>();
List<int> fourth = new List<int>();
for (int i = 0; i < 4; i++)
{
for (int ix = 0; ix < 7; ix++)
{
Console.Write($"{i + 1}.kişi {ix + 1}. sayıyı girin: ");
if (i == 0)
first.Add(int.Parse(Console.ReadLine()));
if (i == 1)
second.Add(int.Parse(Console.ReadLine()));
if (i == 2)
third.Add(int.Parse(Console.ReadLine()));
if (i == 3)
fourth.Add(int.Parse(Console.ReadLine()));
}
}
for (int i = 0; i < 7; i++)
{
Console.WriteLine($"{i + 1}. sayıların çarpımı = {first[i] * second[i] * third[i] * fourth[i]}");
}
Console.ReadLine();
C# ta hiç listeleri sevmemişimdir bence bir int dizisi kullan.
dediğinizin üzerine biraz yaptımda uygulamaya dönüştürdüm. ama butona tıklayınca ayrı bir textbox'ta sonucu nasıl göstereceğim? birkaç deneme yaptım sürekli hata aldım