0
Esta bien el resultado pero no me aprueba..ayuda!!!
class Program { static void Main(string[] args) { int x = 1; int number = Convert.ToInt32(Console.ReadLine()); //tu código va aquí do { if ( x % 3 == 0 ) { Console.Write("*"); } else { Console.Write(""+ x);} x++; if (x == number ) { Console.Write(""+ number ); } }while(x != number ); } }
4 ответов
+ 1
rewrite it, and do it likes this
int number = Convert.ToInt32(Console.ReadLine());
for(int i = 1; i <= number; i ++){
if(i % 3 == 0){
Console.Write("*");
continue;
}
Console.Write(i);
}
0
cause the problem is asking to multiply by 3
0
Gracias...
0
you wel