eult πŸ‡΅πŸ‡ΈπŸ‡΅πŸ‡Έ
eult πŸ‡΅πŸ‡ΈπŸ‡΅πŸ‡Έ
CC#
Created by eult πŸ‡΅πŸ‡ΈπŸ‡΅πŸ‡Έ on 11/3/2022 in #help
is it possible to make a static with 3 different variables (double, string, bool)
double oldNumber = -0;
string active = "off";
bool Activet = false;
double oldNumber = -0;
string active = "off";
bool Activet = false;
21 replies
CC#
Created by eult πŸ‡΅πŸ‡ΈπŸ‡΅πŸ‡Έ on 10/20/2022 in #help
number or not HELP?
Console.WriteLine("");
string c = Console.ReadLine();
double value;
if (double.TryParse(c, out value))
{
Console.WriteLine("Okey we go back i guess");
}

double newnumber = Convert.ToDouble(Console.ReadLine());
Numbers.Add(newnumber);
Console.WriteLine("");
string c = Console.ReadLine();
double value;
if (double.TryParse(c, out value))
{
Console.WriteLine("Okey we go back i guess");
}

double newnumber = Convert.ToDouble(Console.ReadLine());
Numbers.Add(newnumber);
how to check of the value is a number or not ?
5 replies
CC#
Created by eult πŸ‡΅πŸ‡ΈπŸ‡΅πŸ‡Έ on 10/2/2022 in #help
Only numbers
Console.WriteLine(" Please enter a Number");
MyNumber1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(" Please enter a Number");
MyNumber1 = Convert.ToInt32(Console.ReadLine());
how to make if player tried to enter a char to decline and ask him to send a number
6 replies