-
Notifications
You must be signed in to change notification settings - Fork 0
/
metot.cs
58 lines (46 loc) · 1.58 KB
/
metot.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
using System;
namespace metotornegim
{
class Program
{
static void Main(string[] args)
{
carpim();
VizeFinal(56, 85);
BuyukSayi();
metinuzunluk();
}
public static void carpim()
{
for (int x = 1; x <= 10; x++)
{
for (int i = 1; i <= 10; i++)
{
Console.Write("{0}*{1}={2}\t", i, x, (x * i));
}
}
}
public static void metinuzunluk()
{
Console.WriteLine("Yazı Girin : ");
string yazi = Console.ReadLine();
int uzunluk = yazi.Length;
Console.WriteLine("Uzunlugu = " + uzunluk);
Console.ReadLine();
}
public static void VizeFinal(int vize, int final)
{
double ortalama;
ortalama = (vize * 40 / 100) + (final * 60 / 100);
Console.WriteLine("Ortalamanız: " + ortalama);
}
public static void BuyukSayi()
{
Console.WriteLine("Birinci sayiyi girin: ");
double i = Double.Parse(Console.ReadLine());
Console.WriteLine("ikinci sayiyi girin: ");
double a = Double.Parse(Console.ReadLine());
Console.WriteLine($"Buyuk olan sayi: {(i > a ? i : a)} \n\n");
}
}
}