Multiple of 3 Project Troubles :p pls help (C#) | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Multiple of 3 Project Troubles :p pls help (C#)

using System; using System.Collections. Generic; CS namespace SoloLearn class Program { static void Main(string[] args) { int number = Convert-ToInt32 (Console.ReadLine()); int N = 0; while (N<=number) { if (N =0) { N++; continue; } else if (N%3==0) {Console.WriteLine("*"); N++; continue; } else {Console.WriteLine(N); N++; continue; } } } } } The output is: usercode/file@.cs(15,10): error CS0029: Cannot implicitly convert type ' int' to 'bool' What in the world am I doing wrong.

4th Apr 2022, 5:37 PM
Gabby Wood
3 ответов
+ 6
N==0
4th Apr 2022, 5:41 PM
Simba
Simba - avatar
+ 1
if n==0
4th Apr 2022, 7:01 PM
DoffySo
DoffySo - avatar
0
oh goodness my brain doesnt work thank you guys
4th Apr 2022, 8:30 PM
Gabby Wood