Okay so I'm new to coding and I just started an account here to get some help. My assignement is to code an application that will print numbers from 0-100 in the console. But not "32, 44 and 77". I know I could make many If statement, but my question is if I can store the three numbers in an Array and then say like:
int numZero = 0;
int[] num = { 32, 44, 77 };
while (numZero <= 100)
{
Console.WriteLine(numZero);
numZero++;
// I know the num needs to have a value assigned. But can I make the "numZero" go through the three numbers in num?
if (numZero == num [])
{
numZero++;
}
thankful for advice!