using System;
class Program
{
static void Main()
{
string ad, soyad;
Console.CursorTop = 10; // yazıya başlama 10 satır sonra
Console.CursorLeft = 10; // yazıya başlama 10 karakter sonra
Console.ForegroundColor = ConsoleColor.Green;
Console.Write("Adınızı Giriniz : ");
Console.ForegroundColor = ConsoleColor.Yellow;
ad = Console.ReadLine();
Console.CursorLeft = 10;
Console.ForegroundColor = ConsoleColor.Green;
Console.Write("Soyınızı Giriniz : ");
Console.ForegroundColor = ConsoleColor.Yellow;
soyad = Console.ReadLine();
Console.WriteLine();
Console.CursorLeft = 10;
Console.ForegroundColor = ConsoleColor.Yellow;
Console.Write("Merhaba");
Console.ForegroundColor = ConsoleColor.Red;
Console.Write(" {0} {1}!", ad, soyad);
Console.ReadLine();
}
}
0 yorum:
Yorum Gönder