Posts by Gabriel Iasi • 81 points
2 posts
-
4
votes3
answers932
viewsQ: Error comparing numbers and checking if they are equal
I’m doing a simple C# exercise in which I have to receive two numbers, compare them and print out which is the largest or whether they are equal. When I start the program, I can only put the first…
-
2
votes1
answer4967
viewsQ: Doubt about factorial in C#
I’m trying to solve this repetition exercise: Make a go of starting a variable n (number) as 1 and factorial (result) as 1 and ranges n from 1 to 10. Code: int fatorial = 1; for (int n = 1; n <=…
c#asked Gabriel Iasi 81