#include <iostream>
#include <string>
char* answers[] = {
"Yes",
"No",
"It would be benefical for you",
"Possbily",
"Maybe"
};
int main() {
printf("Magic 8 Ball\n\n");
start:
std::string buf;
std::getline(std::cin, buf);
printf("%s\n", answers[rand() % sizeof(answers)/4]);
goto start;
}
using System;
namespace Magic_8_Ball {
class Program {
static string[] answers = new string[] {
"Yes",
"No",
"It would be benefical for you",
"Possbily",
"Maybe"
};
static void Main(string[] args) {
Console.WriteLine("Magic 8 Ball\n");
start:
Console.ReadLine();
Console.WriteLine("{0}", answers[new Random().Next(0, answers.Length)]);
goto start;
}
}
}
using System;
namespace Magic_8_Ball {
class Program {
static string[] answers = new string[] {
"Yes",
"No",
"It would be benefical for you",
"Possbily",
"Maybe"
};
static void Main(string[] args) {
Console.WriteLine("Magic 8 Ball\n");
start:
Console.ReadLine();
Console.WriteLine("{0}", answers[new Random().Next(0, answers.Length)]);
goto start;
}
}
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.