0

C# Code Project

I am so confused with the Code Project, I have no clue what to d and I have tried many for loops, while loops, and do-while loops with different combinations. I have been on this for 4 hours straight and cant figure it out. Someone who has solved it please help.

3rd Mar 2022, 3:54 PM
Kyle Mastropolo
Kyle Mastropolo - avatar
5 Antworten
+ 2
There are more code projects. Can we see what you mean?
3rd Mar 2022, 4:35 PM
JaScript
JaScript - avatar
+ 1
I am so sorry, Code Project C# 23.1
4th Mar 2022, 3:02 AM
Kyle Mastropolo
Kyle Mastropolo - avatar
+ 1
The hint is given in the task description: The N number is a multiple of 3 if N%3==0.
4th Mar 2022, 12:02 PM
JaScript
JaScript - avatar
0
int number = Convert.ToInt32(Console.ReadLine()); int count = 0; while (count < number){ count++; if (count % 3 == 0){ Console.Write("*"); } else{ Console.Write(count); } }
5th Mar 2022, 11:08 PM
Jackie
Jackie - avatar