Question description

I need to write a while loop that print all odd numbers 1-21 separated by spaces, with no new lines. My output is coming up blank. What’s wrong with my code?class Program
{
static void Main(string[] args)
{
{
int i = 0;
while (i <= 21) if (i % 2 == 1); { Console.Ace my homework - WriteLine(i);                     i ++;//add increment control variable } } } } }

Published by
Essays Scribe
View all posts