Multiply of 3 case issues
I've been puzzling for a while on this problem. I have got the first 3 test cases right but the 4th and 5th case wrong. I can't view those cases so I am unsure what the issue is or what I am overlooking. Help is much appreciated. Here's my code using System; using System.Collections.Generic; namespace SoloLearn { class Program { static void Main(string[] args) { int number = Convert.ToInt32(Console.ReadLine()); int x; //your code goes here for(x=1;x<=number;x++) { if(x%3==0) { Console.Write("*"); x++; } else if(number==0) { break; } Console.Write(x); } } } }