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.
3 ответов
+ 6
N==0
+ 1
if n==0
0
oh goodness my brain doesnt work thank you guys