Despy()
Despy()
CC#
Created by Despy() on 3/28/2023 in #help
❔ help with an exercise
nevermind it was my mistake
42 replies
CC#
Created by Despy() on 3/28/2023 in #help
❔ help with an exercise
sorry i had to do smth
string str = "31131123521";
int result = 1;
foreach (char c in str)
{
int digit = int.Parse(c.ToString());
result *= digit;
}
Console.WriteLine(result);
string str = "31131123521";
int result = 1;
foreach (char c in str)
{
int digit = int.Parse(c.ToString());
result *= digit;
}
Console.WriteLine(result);
42 replies
CC#
Created by Despy() on 3/28/2023 in #help
❔ help with an exercise
sec
42 replies
CC#
Created by Despy() on 3/28/2023 in #help
❔ help with an exercise
the logic itself
42 replies
CC#
Created by Despy() on 3/28/2023 in #help
❔ help with an exercise
thats what im asking for ; ;
42 replies
CC#
Created by Despy() on 3/28/2023 in #help
❔ help with an exercise
it is flawed
42 replies
CC#
Created by Despy() on 3/28/2023 in #help
❔ help with an exercise
when in fact the answer to 3 * 1 * 1 * 3 * 1 * 1 * 2 * 3 * 5 * 2 * 1 is 540
42 replies
CC#
Created by Despy() on 3/28/2023 in #help
❔ help with an exercise
i know to convert chars into ints and such. the problem is when i try doing it with code the answer comes up as smth ludicrous in the millions. keep in mind this is the string "31131123521"
42 replies
CC#
Created by Despy() on 3/28/2023 in #help
❔ help with an exercise
thats not my problem
42 replies
CC#
Created by Despy() on 3/28/2023 in #help
❔ help with an exercise
okay can yall get my code and do it then
42 replies
CC#
Created by Despy() on 3/28/2023 in #help
❔ help with an exercise
i know
42 replies
CC#
Created by Despy() on 3/28/2023 in #help
❔ help with an exercise
when in fact the answer is 540
42 replies
CC#
Created by Despy() on 3/28/2023 in #help
❔ help with an exercise
a huge number in the millions always comes up
42 replies
CC#
Created by Despy() on 3/28/2023 in #help
❔ help with an exercise
i dont know in what pattern to multiply the numbers
42 replies
CC#
Created by Despy() on 3/28/2023 in #help
❔ help with an exercise
i dont know how to like, i even tried using chatGPT for this and still nothing
42 replies
CC#
Created by Despy() on 3/28/2023 in #help
❔ help with an exercise
string wholeString = Console.ReadLine();
string multiplicationNumbers = "";
foreach (var letter in wholeString)
{
if (char.IsDigit(letter))
{
multiplicationNumbers += letter;
}
}
Console.WriteLine(multiplicationNumbers);
for (int i = 0; i < multiplicationNumbers.Length; i++)
{

}
string wholeString = Console.ReadLine();
string multiplicationNumbers = "";
foreach (var letter in wholeString)
{
if (char.IsDigit(letter))
{
multiplicationNumbers += letter;
}
}
Console.WriteLine(multiplicationNumbers);
for (int i = 0; i < multiplicationNumbers.Length; i++)
{

}
42 replies
CC#
Created by Despy() on 3/28/2023 in #help
❔ help with an exercise
heres the structure
42 replies
CC#
Created by Despy() on 3/28/2023 in #help
❔ help with an exercise
mind writing some quick code for this ; ; ?
42 replies
CC#
Created by Despy() on 3/18/2023 in #help
❔ Connecting a MySQL server to a C# project
ill get it done
89 replies
CC#
Created by Despy() on 3/18/2023 in #help
❔ Connecting a MySQL server to a C# project
its just the trouble of actually connecting the database or server idk how exactly its called to the actual project i have
89 replies