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.
5 Answers
+ 2
There are more code projects. Can we see what you mean?
+ 1
I am so sorry, Code Project C# 23.1
+ 1
The hint is given in the task description:
The N number is a multiple of 3 if N%3==0.
0
int number = Convert.ToInt32(Console.ReadLine()); int count = 0;
while (count < number){
count++;
if (count % 3 == 0){
Console.Write("*");
}
else{
Console.Write(count);
}
}