Home / Expert Answers / Computer Science / create-a-visual-studio-console-application-in-c-and-using-the-for-and-the-while-loop-please-do-the-pa666

(Solved): Create a visual studio console application in C# and using the for and the while loop, please do the ...



Create a visual studio console application in C# and using the for and the while loop, please do the following:

Display the odd integers from 1 to 100. Display only five integers per line.

Please include information on name, description of program, date etc as a comment block in your program.

Hint: assuming that the counter variable is i, use the calculation i % 5.  When the value of this expression is 0, display a newline character; otherwise, display a tab character.  Use the Console.Write ('\t') method to output the tab character. Your output should look like this:

You will have two outputs with the same data, one would be done with the for loop and the other with the while loop.



We have an Answer from Expert

View Expert Answer

Expert Answer


In this question the user is asked to print the odd in
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe