wie kann ich den Code in der Konsole ausgeben?
wenn ich Console.WriteLine() nach unten schreibe damit if Funktion als erstes ausgeführt wird zeigt mir das Programm ein Fehler an wie muss ich es umschreiben damit der Code mir sagt das 111 eine Schnapszahl ist?
Console.WriteLine(similar digits(ZAHLEINTRAGEN));
he now says that 111 is wrong, though with all the same digits true should come out?
This function takes a number as a parameter and uses a While loop to check whether the number is a schnapps number. Within the loop, the sum of the numbers of the current number is calculated by using the Modulo operator to isolate the number at each point, and then the integer division is used to reach the point of the next digit.
If the sum of numbers is equal to the number, the function returns true and ends the loop. Otherwise, the number is increased by 1 and the loop
I have implemented the code so now but now he gives nothing in the console from owo