sponsor

YAPAY ZEKA YAPIMI BASİT KOD YAPISI

YAPAY ZEKA YAPIMI BASİT KOD YAPISI

c# kodları
// Program Name: chatterbot1
// Description: this is a very basic example of a chatterbot program
//
// Author: Gonzales Cenelia
//
using System;
class Chatterbot1
{
static string[] Response = {
"Mehaba Ben Yapay zeka!",
"hadi konusalım.",
"by.",
"ben sistem.",
"canım meraba..."
};
static string sInput = "kimsin?";
static string sResponse = "abcde";
public static void Main(string[] args)
{
Console.Title = "Yapay Zeka";
while (true)
{
Console.Write(">");
sInput = Console.ReadLine();
Random generator = new Random();
int nSelection = generator.Next(0, 5);
sResponse = Response[nSelection];
if (sInput.Equals("by"))
{
Console.WriteLine("Sisteme Hoşgeldin!");
Console.In.Read();
break;
}
Console.WriteLine(sResponse);
}
}
}
bu verilen kodlar visual sutudyoda deneyebilirsiniz kolay gelsin

Yorumlar

Bu blogdaki popüler yayınlar

sıfır bir 3 sezon 1 bölüm izle

Güncel Eset Keyleri - Hergün Güncel Key

Yeşil Çay Zayıflatır mı?

sponsor